Skip to content

Commit

Permalink
Fix Resequencer test wait time
Browse files Browse the repository at this point in the history
https://build.spring.io/browse/INT-MASTERSPRING40-534/

Since we are expecting a message, a large wait time is no detriment
to test runtime and provides a more reliable test on a busy CI server.
  • Loading branch information
garyrussell committed Nov 24, 2018
1 parent 9e6e60e commit f6e9e66
Showing 1 changed file with 3 additions and 3 deletions.
Expand Up @@ -392,15 +392,15 @@ public void testTimeoutDontExpire() throws InterruptedException {
this.resequencer.handleMessage(message2);
Message<?> out1 = replyChannel.receive(0);
assertNull(out1);
out1 = discardChannel.receive(10000);
out1 = discardChannel.receive(10_000);
assertNotNull(out1);
Message<?> out2 = discardChannel.receive(10);
Message<?> out2 = discardChannel.receive(10_000);
assertNotNull(out2);
Message<?> message1 = createMessage("123", "ABC", 3, 1, null);
this.resequencer.handleMessage(message1);
Message<?> out3 = discardChannel.receive(0);
assertNull(out3);
out3 = discardChannel.receive(10000);
out3 = discardChannel.receive(10_000);
assertNotNull(out3);
}

Expand Down

0 comments on commit f6e9e66

Please sign in to comment.