mirror of
https://github.com/spring-projects/spring-boot.git
synced 2024-08-29 03:06:45 +08:00
Fix context runner assertions not being executed
See gh-39087
This commit is contained in:
parent
1000733a4d
commit
ed039fcf7d
@ -628,15 +628,13 @@ class WebFluxAutoConfigurationTests {
|
|||||||
@Test
|
@Test
|
||||||
void customSessionMaxSessionsConfigurationShouldBeApplied() {
|
void customSessionMaxSessionsConfigurationShouldBeApplied() {
|
||||||
this.contextRunner.withPropertyValues("server.reactive.session.max-sessions:123")
|
this.contextRunner.withPropertyValues("server.reactive.session.max-sessions:123")
|
||||||
.run((context) -> assertMaxSessionsWithWebSession(123));
|
.run(assertMaxSessionsWithWebSession(123));
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
void defaultSessionMaxSessionsConfigurationShouldBeInSync() {
|
void defaultSessionMaxSessionsConfigurationShouldBeInSync() {
|
||||||
this.contextRunner.run((context) -> {
|
int defaultMaxSessions = new InMemoryWebSessionStore().getMaxSessions();
|
||||||
int defaultMaxSessions = new InMemoryWebSessionStore().getMaxSessions();
|
this.contextRunner.run(assertMaxSessionsWithWebSession(defaultMaxSessions));
|
||||||
assertMaxSessionsWithWebSession(defaultMaxSessions);
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
|
Loading…
Reference in New Issue
Block a user