mirror of
https://github.com/fnproject/fn.git
synced 2022-10-28 21:29:17 +03:00
Increase tests timeouts for API tests
This commit is contained in:
@@ -109,7 +109,7 @@ func TestRouteExecutions(t *testing.T) {
|
||||
|
||||
t.Run("run-async-funcy/hello-with-status-check", func(t *testing.T) {
|
||||
callID := CallAsync(t, u, &bytes.Buffer{})
|
||||
time.Sleep(time.Second * 2)
|
||||
time.Sleep(time.Second * 10)
|
||||
cfg := &call.GetCallsCallParams{
|
||||
Call: callID,
|
||||
Context: s.Context,
|
||||
@@ -247,7 +247,7 @@ func TestRouteExecutions(t *testing.T) {
|
||||
}{Size: 20})
|
||||
|
||||
callID := CallAsync(t, u, content)
|
||||
time.Sleep(5 * time.Second)
|
||||
time.Sleep(10 * time.Second)
|
||||
|
||||
cfg := &operations.GetCallsCallLogParams{
|
||||
Call: callID,
|
||||
|
||||
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user