We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4c4fa55 commit f93fc5fCopy full SHA for f93fc5f
1 file changed
tests/ps_test.go
@@ -7,6 +7,7 @@ import (
7
"os/exec"
8
"strings"
9
"testing"
10
+ "time"
11
12
"github.com/deis/deis/tests/utils"
13
)
@@ -23,6 +24,13 @@ func TestPs(t *testing.T) {
23
24
appsOpenTest(t, params)
25
psListTest(t, params, false)
26
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
34
utils.CurlWithFail(t, params, true, "503")
35
36
utils.AppsDestroyTest(t, params)
0 commit comments