Skip to content

Commit 6f549cf

Browse files
committed
Merge pull request #39087 from kzander91
* pr/39087: Fix context runner assertions not being executed Closes gh-39087
2 parents 1000733 + ed039fc commit 6f549cf

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)