Add missing timeout in web-reactive IntegrationTests
This commit is contained in:
parent
10c90a677c
commit
6e54ed0df1
|
|
@ -32,6 +32,8 @@ import org.springframework.web.client.reactive.WebClient;
|
|||
|
||||
import static org.junit.Assume.assumeFalse;
|
||||
|
||||
import java.time.Duration;
|
||||
|
||||
/**
|
||||
* @author Sebastien Deleuze
|
||||
*/
|
||||
|
|
@ -57,7 +59,7 @@ public class FlushingIntegrationTests extends AbstractHttpHandlerIntegrationTest
|
|||
|
||||
TestSubscriber
|
||||
.subscribe(result)
|
||||
.await()
|
||||
.await(Duration.ofSeconds(5))
|
||||
.assertValues("data0data1");
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -20,6 +20,7 @@ import static org.junit.Assert.*;
|
|||
import static org.springframework.web.client.reactive.ClientWebRequestBuilders.*;
|
||||
import static org.springframework.web.client.reactive.ResponseExtractors.*;
|
||||
|
||||
import java.time.Duration;
|
||||
import java.util.function.Consumer;
|
||||
|
||||
import okhttp3.HttpUrl;
|
||||
|
|
@ -291,7 +292,7 @@ public class WebClientIntegrationTests {
|
|||
|
||||
TestSubscriber
|
||||
.subscribe(result)
|
||||
.await()
|
||||
.await(Duration.ofSeconds(3))
|
||||
.assertErrorWith(t -> {
|
||||
assertThat(t, Matchers.instanceOf(WebClientErrorException.class));
|
||||
WebClientErrorException exc = (WebClientErrorException) t;
|
||||
|
|
@ -324,7 +325,7 @@ public class WebClientIntegrationTests {
|
|||
|
||||
TestSubscriber
|
||||
.subscribe(result)
|
||||
.await()
|
||||
.await(Duration.ofSeconds(3))
|
||||
.assertErrorWith(t -> {
|
||||
assertThat(t, Matchers.instanceOf(WebServerErrorException.class));
|
||||
WebServerErrorException exc = (WebServerErrorException) t;
|
||||
|
|
|
|||
Loading…
Reference in New Issue