Skip to content

Commit

Permalink
restore the number of attempts
Browse files Browse the repository at this point in the history
  • Loading branch information
honnix committed Oct 7, 2019
1 parent 5c0e393 commit 22d79d1
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ public void testHttpErrorReconnect() throws InterruptedException {
// accept watch and disconnect
server.expect().withPath(path).andUpgradeToWebSocket().open().done().once();
// refuse reconnect attempts 6 times
server.expect().withPath(path).andReturn(503, new StatusBuilder().withCode(503).build()).times(1);
server.expect().withPath(path).andReturn(503, new StatusBuilder().withCode(503).build()).times(6);
// accept next reconnect and send ADDED event
server.expect().withPath(path)
.andUpgradeToWebSocket().open(new WatchEvent(pod1, "ADDED")).done().once();
Expand Down

0 comments on commit 22d79d1

Please sign in to comment.