File tree Expand file tree Collapse file tree 2 files changed +6
-3
lines changed
spring-web/src/test/java/org/springframework Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Original file line number Diff line number Diff line change 3232
3333import static org .junit .Assume .assumeFalse ;
3434
35+ import java .time .Duration ;
36+
3537/**
3638 * @author Sebastien Deleuze
3739 */
@@ -57,7 +59,7 @@ public void testFlushing() throws Exception {
5759
5860 TestSubscriber
5961 .subscribe (result )
60- .await ()
62+ .await (Duration . ofSeconds ( 5 ) )
6163 .assertValues ("data0data1" );
6264 }
6365
Original file line number Diff line number Diff line change 2020import static org .springframework .web .client .reactive .ClientWebRequestBuilders .*;
2121import static org .springframework .web .client .reactive .ResponseExtractors .*;
2222
23+ import java .time .Duration ;
2324import java .util .function .Consumer ;
2425
2526import okhttp3 .HttpUrl ;
@@ -291,7 +292,7 @@ public void shouldGetErrorWhen404() throws Exception {
291292
292293 TestSubscriber
293294 .subscribe (result )
294- .await ()
295+ .await (Duration . ofSeconds ( 3 ) )
295296 .assertErrorWith (t -> {
296297 assertThat (t , Matchers .instanceOf (WebClientErrorException .class ));
297298 WebClientErrorException exc = (WebClientErrorException ) t ;
@@ -324,7 +325,7 @@ public void shouldGetErrorWhen500() throws Exception {
324325
325326 TestSubscriber
326327 .subscribe (result )
327- .await ()
328+ .await (Duration . ofSeconds ( 3 ) )
328329 .assertErrorWith (t -> {
329330 assertThat (t , Matchers .instanceOf (WebServerErrorException .class ));
330331 WebServerErrorException exc = (WebServerErrorException ) t ;
You can’t perform that action at this time.
0 commit comments