Skip to content

Commit ed039fc

Browse files
kzander91mhalbritter
authored andcommitted
Fix context runner assertions not being executed
See gh-39087
1 parent 1000733 commit ed039fc

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

spring-boot-project/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/web/reactive/WebFluxAutoConfigurationTests.java

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -628,15 +628,13 @@ void customSessionTimeoutConfigurationShouldBeApplied() {
628628
@Test
629629
void customSessionMaxSessionsConfigurationShouldBeApplied() {
630630
this.contextRunner.withPropertyValues("server.reactive.session.max-sessions:123")
631-
.run((context) -> assertMaxSessionsWithWebSession(123));
631+
.run(assertMaxSessionsWithWebSession(123));
632632
}
633633

634634
@Test
635635
void defaultSessionMaxSessionsConfigurationShouldBeInSync() {
636-
this.contextRunner.run((context) -> {
637-
int defaultMaxSessions = new InMemoryWebSessionStore().getMaxSessions();
638-
assertMaxSessionsWithWebSession(defaultMaxSessions);
639-
});
636+
int defaultMaxSessions = new InMemoryWebSessionStore().getMaxSessions();
637+
this.contextRunner.run(assertMaxSessionsWithWebSession(defaultMaxSessions));
640638
}
641639

642640
@Test

0 commit comments

Comments
 (0)