Skip to content

Commit f93fc5f

Browse files
committed
fix(tests/ps_test): sleep before checking for 503 response
1 parent 4c4fa55 commit f93fc5f

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

tests/ps_test.go

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ import (
77
"os/exec"
88
"strings"
99
"testing"
10+
"time"
1011

1112
"github.com/deis/deis/tests/utils"
1213
)
@@ -23,6 +24,13 @@ func TestPs(t *testing.T) {
2324
appsOpenTest(t, params)
2425
psListTest(t, params, false)
2526
psScaleTest(t, params, psDownScaleCmd)
27+
28+
// FIXME if we don't wait here, some of the routers may give us a 502 before
29+
// the app is removed from the config.
30+
// we wait 7 seconds since confd reloads every 5 seconds
31+
time.Sleep(time.Millisecond * 7000)
32+
33+
// test for a 503 response
2634
utils.CurlWithFail(t, params, true, "503")
2735

2836
utils.AppsDestroyTest(t, params)

0 commit comments

Comments
 (0)