More percentages increase in DelayerUsageTests
Even `20` is not enough: https://build.spring.io/browse/INT-MAIN-521/
This commit is contained in:
@@ -80,7 +80,7 @@ public class DelayerUsageTests {
|
||||
});
|
||||
|
||||
assertThat(outputA.receive(10000)).isNotNull();
|
||||
assertThat(System.currentTimeMillis() - start).isCloseTo(1000, withinPercentage(20));
|
||||
assertThat(System.currentTimeMillis() - start).isCloseTo(1000, withinPercentage(25));
|
||||
}
|
||||
|
||||
@Test
|
||||
@@ -91,7 +91,7 @@ public class DelayerUsageTests {
|
||||
long start = System.currentTimeMillis();
|
||||
inputA.send(builder.build());
|
||||
assertThat(outputA.receive(10000)).isNotNull();
|
||||
assertThat(System.currentTimeMillis() - start).isCloseTo(2000, withinPercentage(20));
|
||||
assertThat(System.currentTimeMillis() - start).isCloseTo(2000, withinPercentage(25));
|
||||
}
|
||||
|
||||
@Test
|
||||
@@ -124,7 +124,7 @@ public class DelayerUsageTests {
|
||||
delayerInsideChain.send(new GenericMessage<>("Hello"));
|
||||
Message<?> message = outputA.receive(10000);
|
||||
assertThat(message).isNotNull();
|
||||
assertThat(System.currentTimeMillis() - start).isCloseTo(1000, withinPercentage(20));
|
||||
assertThat(System.currentTimeMillis() - start).isCloseTo(1000, withinPercentage(25));
|
||||
assertThat(message.getPayload()).isEqualTo("hello");
|
||||
}
|
||||
|
||||
@@ -134,7 +134,7 @@ public class DelayerUsageTests {
|
||||
this.inputC.send(new GenericMessage<>("test"));
|
||||
Message<?> message = this.outputC.receive(10000);
|
||||
assertThat(message).isNotNull();
|
||||
assertThat(System.currentTimeMillis() - start).isCloseTo(1000, withinPercentage(20));
|
||||
assertThat(System.currentTimeMillis() - start).isCloseTo(1000, withinPercentage(25));
|
||||
assertThat(message.getPayload()).isEqualTo("test");
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user