From 8505da163df5251abaf8649d3445bf2f2ba8be0e Mon Sep 17 00:00:00 2001 From: Artem Bilan Date: Sat, 18 Apr 2020 11:13:53 -0400 Subject: [PATCH] Increase a block timeout in Gateway Mono test * It turns out that 1 seconds is not enough on CI machine under the stress --- .../integration/config/xml/GatewayParserTests.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spring-integration-core/src/test/java/org/springframework/integration/config/xml/GatewayParserTests.java b/spring-integration-core/src/test/java/org/springframework/integration/config/xml/GatewayParserTests.java index 04b1f6067b..e472227709 100644 --- a/spring-integration-core/src/test/java/org/springframework/integration/config/xml/GatewayParserTests.java +++ b/spring-integration-core/src/test/java/org/springframework/integration/config/xml/GatewayParserTests.java @@ -1,5 +1,5 @@ /* - * Copyright 2002-2019 the original author or authors. + * Copyright 2002-2020 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -197,7 +197,7 @@ public class GatewayParserTests { this.startResponder(requestChannel, replyChannel); TestService service = context.getBean("promise", TestService.class); Mono> result = service.promise("foo"); - Message reply = result.block(Duration.ofSeconds(1)); + Message reply = result.block(Duration.ofSeconds(10)); assertThat(reply.getPayload()).isEqualTo("foo"); assertThat(TestUtils.getPropertyValue(context.getBean("&promise"), "asyncExecutor")).isNotNull(); }