More percentages increase in DelayerUsageTests

Even `20` is not enough:
https://build.spring.io/browse/INT-MAIN-521/
This commit is contained in:
abilan
2022-12-05 11:29:28 -05:00
parent 03825c5625
commit a1e4827bbe

View File

@@ -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");
}