Merge pull request #39087 from kzander91

* pr/39087:
  Fix context runner assertions not being executed

Closes gh-39087
This commit is contained in:
Moritz Halbritter 2024-01-11 14:17:18 +01:00
commit 6f549cffaf
1 changed files with 3 additions and 5 deletions

View File

@ -628,15 +628,13 @@ class WebFluxAutoConfigurationTests {
@Test
void customSessionMaxSessionsConfigurationShouldBeApplied() {
this.contextRunner.withPropertyValues("server.reactive.session.max-sessions:123")
.run((context) -> assertMaxSessionsWithWebSession(123));
.run(assertMaxSessionsWithWebSession(123));
}
@Test
void defaultSessionMaxSessionsConfigurationShouldBeInSync() {
this.contextRunner.run((context) -> {
int defaultMaxSessions = new InMemoryWebSessionStore().getMaxSessions();
assertMaxSessionsWithWebSession(defaultMaxSessions);
});
int defaultMaxSessions = new InMemoryWebSessionStore().getMaxSessions();
this.contextRunner.run(assertMaxSessionsWithWebSession(defaultMaxSessions));
}
@Test