Skip to content

Commit 68eacf4

Browse files
authored
Merge pull request #2098 from yue9944882/flake/attach-stream-close
Flakiness: Fixes attach test failure by applying a longer delay
2 parents 1435dcc + 918a3c0 commit 68eacf4

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

util/src/test/java/io/kubernetes/client/AttachTest.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,8 @@ public void testUrl() throws IOException, ApiException, InterruptedException {
5757
get(urlPathEqualTo("/api/v1/namespaces/" + namespace + "/pods/" + podName + "/attach"))
5858
.willReturn(
5959
aResponse()
60+
.withFixedDelay(
61+
5000) // A longer delay so the attach stream won't be closed too soon
6062
.withStatus(404)
6163
.withHeader("Content-Type", "application/json")
6264
.withBody("{}")));

0 commit comments

Comments
 (0)