Increase tests timeouts for API tests

This commit is contained in:
Denis Makogon
2017-07-21 23:45:05 +03:00
parent 75ac1cc05e
commit 96cf246cb3
2 changed files with 8 additions and 2 deletions

View File

@@ -41,6 +41,12 @@ func APIClient() *client.Functions {
// create the API client, with the transport
client := client.New(transport, strfmt.Default)
_, err := client.Version.GetVersion(nil)
if err != nil {
if Host() != "localhost:8080" {
panic("Cannot reach remote api for functions")
}
}
return client
}