Skip to content

Commit 43d03c3

Browse files
committed
Increase test receive timeouts
1 parent c05876e commit 43d03c3

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

spring-integration-core/src/test/java/org/springframework/integration/configuration/EnableIntegrationTests.java

+8-8
Original file line numberDiff line numberDiff line change
@@ -341,15 +341,15 @@ public void testAnnotatedServiceActivator() throws Exception {
341341

342342
this.input.send(MessageBuilder.withPayload("Foo").build());
343343

344-
Message<?> interceptedMessage = this.wireTapChannel.receive(10000);
344+
Message<?> interceptedMessage = this.wireTapChannel.receive(10_000);
345345
assertThat(interceptedMessage).isNotNull();
346346
assertThat(interceptedMessage.getPayload()).isEqualTo("Foo");
347347

348-
Message<?> receive = this.output.receive(10000);
348+
Message<?> receive = this.output.receive(10_000);
349349
assertThat(receive).isNotNull();
350350
assertThat(receive.getPayload()).isEqualTo("FOO");
351351

352-
receive = this.wireTapFromOutput.receive(10000);
352+
receive = this.wireTapFromOutput.receive(10_000);
353353
assertThat(receive).isNotNull();
354354
assertThat(receive.getPayload()).isEqualTo("FOO");
355355

@@ -360,7 +360,7 @@ public void testAnnotatedServiceActivator() throws Exception {
360360
assertThat(messageHistoryString).contains("annotationTestService.handle.serviceActivator.handler");
361361
assertThat(messageHistoryString).doesNotContain("output");
362362

363-
receive = this.publishedChannel.receive(10000);
363+
receive = this.publishedChannel.receive(10_000);
364364

365365
assertThat(receive).isNotNull();
366366
assertThat(receive.getPayload()).isEqualTo("foo");
@@ -389,20 +389,20 @@ public void testAnnotatedServiceActivator() throws Exception {
389389
countSA.start();
390390

391391
for (int i = 0; i < 10; i++) {
392-
Message<?> message = this.counterChannel.receive(1000);
392+
Message<?> message = this.counterChannel.receive(10_000);
393393
assertThat(message).isNotNull();
394394
assertThat(message.getPayload()).isEqualTo(i + 1);
395395
}
396396

397-
Message<?> message = this.fooChannel.receive(1000);
397+
Message<?> message = this.fooChannel.receive(10_000);
398398
assertThat(message).isNotNull();
399399
assertThat(message.getPayload()).isEqualTo("foo");
400-
message = this.fooChannel.receive(1000);
400+
message = this.fooChannel.receive(10_000);
401401
assertThat(message).isNotNull();
402402
assertThat(message.getPayload()).isEqualTo("foo");
403403
assertThat(this.fooChannel.receive(10)).isNull();
404404

405-
message = this.messageChannel.receive(1000);
405+
message = this.messageChannel.receive(10_000);
406406
assertThat(message).isNotNull();
407407
assertThat(message.getPayload()).isEqualTo("bar");
408408
assertThat(message.getHeaders().containsKey("foo")).isTrue();

0 commit comments

Comments
 (0)