Skip to content

Commit 22d79d1

Browse files
committed
restore the number of attempts
1 parent 5c0e393 commit 22d79d1

File tree

1 file changed

+1
-1
lines changed
  • kubernetes-tests/src/test/java/io/fabric8/kubernetes/client/mock

1 file changed

+1
-1
lines changed

kubernetes-tests/src/test/java/io/fabric8/kubernetes/client/mock/WatchTest.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ public void testHttpErrorReconnect() throws InterruptedException {
139139
// accept watch and disconnect
140140
server.expect().withPath(path).andUpgradeToWebSocket().open().done().once();
141141
// refuse reconnect attempts 6 times
142-
server.expect().withPath(path).andReturn(503, new StatusBuilder().withCode(503).build()).times(1);
142+
server.expect().withPath(path).andReturn(503, new StatusBuilder().withCode(503).build()).times(6);
143143
// accept next reconnect and send ADDED event
144144
server.expect().withPath(path)
145145
.andUpgradeToWebSocket().open(new WatchEvent(pod1, "ADDED")).done().once();

0 commit comments

Comments
 (0)