From e7d58f6b0338a160443fcd1579b9589cf4a2a48a Mon Sep 17 00:00:00 2001 From: Eleftheria Stein Date: Wed, 8 Sep 2021 12:04:26 +0200 Subject: [PATCH] Increase session timeout in Hazelcast tests It's possible that the session is expiring before the assertions can be made in the tests, causing them to fail. Issue gh-1912 --- .../SessionEventHazelcast4IndexedSessionRepositoryTests.java | 2 +- .../SessionEventHazelcastIndexedSessionRepositoryTests.java | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/spring-session-hazelcast/hazelcast4/src/integration-test/java/org/springframework/session/hazelcast/SessionEventHazelcast4IndexedSessionRepositoryTests.java b/spring-session-hazelcast/hazelcast4/src/integration-test/java/org/springframework/session/hazelcast/SessionEventHazelcast4IndexedSessionRepositoryTests.java index b761a3b0..a0ba4999 100644 --- a/spring-session-hazelcast/hazelcast4/src/integration-test/java/org/springframework/session/hazelcast/SessionEventHazelcast4IndexedSessionRepositoryTests.java +++ b/spring-session-hazelcast/hazelcast4/src/integration-test/java/org/springframework/session/hazelcast/SessionEventHazelcast4IndexedSessionRepositoryTests.java @@ -57,7 +57,7 @@ import static org.assertj.core.api.Assertions.assertThat; @WebAppConfiguration class SessionEventHazelcast4IndexedSessionRepositoryTests { - private static final int MAX_INACTIVE_INTERVAL_IN_SECONDS = 1; + private static final int MAX_INACTIVE_INTERVAL_IN_SECONDS = 2; @Autowired private SessionRepository repository; diff --git a/spring-session-hazelcast/src/integration-test/java/org/springframework/session/hazelcast/SessionEventHazelcastIndexedSessionRepositoryTests.java b/spring-session-hazelcast/src/integration-test/java/org/springframework/session/hazelcast/SessionEventHazelcastIndexedSessionRepositoryTests.java index c0309f02..b17eadf2 100644 --- a/spring-session-hazelcast/src/integration-test/java/org/springframework/session/hazelcast/SessionEventHazelcastIndexedSessionRepositoryTests.java +++ b/spring-session-hazelcast/src/integration-test/java/org/springframework/session/hazelcast/SessionEventHazelcastIndexedSessionRepositoryTests.java @@ -1,5 +1,5 @@ /* - * Copyright 2014-2019 the original author or authors. + * Copyright 2014-2021 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. @@ -58,7 +58,7 @@ import static org.assertj.core.api.Assertions.assertThat; @WebAppConfiguration class SessionEventHazelcastIndexedSessionRepositoryTests { - private static final int MAX_INACTIVE_INTERVAL_IN_SECONDS = 1; + private static final int MAX_INACTIVE_INTERVAL_IN_SECONDS = 2; @Autowired private SessionRepository repository;