Skip to content

Commit

Permalink
Try to stabilize SampleSessionWebFluxApplicationTests
Browse files Browse the repository at this point in the history
Closes gh-30353
  • Loading branch information
wilkinsona committed Mar 22, 2022
1 parent b2c52d6 commit 5473cd3
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2012-2021 the original author or authors.
* Copyright 2012-2022 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.
Expand Down Expand Up @@ -35,7 +35,7 @@
*
* @author Vedran Pavic
*/
@SpringBootTest(properties = "spring.session.timeout:5", webEnvironment = SpringBootTest.WebEnvironment.RANDOM_PORT)
@SpringBootTest(properties = "spring.session.timeout:10", webEnvironment = SpringBootTest.WebEnvironment.RANDOM_PORT)
class SampleSessionWebFluxApplicationTests {

@LocalServerPort
Expand All @@ -59,7 +59,7 @@ void userDefinedMappingsSecureByDefault() {
.doOnNext((sessionId) -> assertThat(sessionId).isEqualTo(tuple.getT2()))
.thenReturn(sesssionCookie);
});
}).delayElement(Duration.ofSeconds(5))
}).delayElement(Duration.ofSeconds(10))
.flatMap((sessionCookie) -> client.get().cookie("SESSION", sessionCookie).exchangeToMono((response) -> {
assertThat(response.statusCode()).isEqualTo(HttpStatus.UNAUTHORIZED);
return response.releaseBody();
Expand Down

0 comments on commit 5473cd3

Please sign in to comment.