浏览代码

Increase E2E test timeouts to reduce flakiness

Signed-off-by: Laura Brehm <[email protected]>
Laura Brehm 3 年之前
父节点
当前提交
118b4f07e5
共有 2 个文件被更改,包括 2 次插入2 次删除
  1. 1 1
      pkg/e2e/compose_test.go
  2. 1 1
      pkg/e2e/pause_test.go

+ 1 - 1
pkg/e2e/compose_test.go

@@ -146,7 +146,7 @@ func TestAttachRestart(t *testing.T) {
 		return strings.Count(res.Stdout(),
 				"failing-1 exited with code 1") == 3, fmt.Sprintf("'failing-1 exited with code 1' not found 3 times in : \n%s\n",
 				debug)
-	}, 3*time.Minute, 2*time.Second)
+	}, 4*time.Minute, 2*time.Second)
 
 	assert.Equal(t, strings.Count(res.Stdout(), "failing-1  | world"), 3, res.Combined())
 }

+ 1 - 1
pkg/e2e/pause_test.go

@@ -46,7 +46,7 @@ func TestPause(t *testing.T) {
 		"b": urlForService(t, cli, "b", 80),
 	}
 	for _, url := range urls {
-		HTTPGetWithRetry(t, url, http.StatusOK, 50*time.Millisecond, 5*time.Second)
+		HTTPGetWithRetry(t, url, http.StatusOK, 50*time.Millisecond, 20*time.Second)
 	}
 
 	// pause a and verify that it can no longer be hit but b still can