Skip to content

Commit d8af719

Browse files
committed
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
1 parent d0429dc commit d8af719

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

spring-session-hazelcast/hazelcast4/src/integration-test/java/org/springframework/session/hazelcast/SessionEventHazelcast4IndexedSessionRepositoryTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@
5757
@WebAppConfiguration
5858
class SessionEventHazelcast4IndexedSessionRepositoryTests<S extends Session> {
5959

60-
private static final int MAX_INACTIVE_INTERVAL_IN_SECONDS = 1;
60+
private static final int MAX_INACTIVE_INTERVAL_IN_SECONDS = 2;
6161

6262
@Autowired
6363
private SessionRepository<S> repository;

spring-session-hazelcast/src/integration-test/java/org/springframework/session/hazelcast/SessionEventHazelcastIndexedSessionRepositoryTests.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2014-2019 the original author or authors.
2+
* Copyright 2014-2021 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -58,7 +58,7 @@
5858
@WebAppConfiguration
5959
class SessionEventHazelcastIndexedSessionRepositoryTests<S extends Session> {
6060

61-
private static final int MAX_INACTIVE_INTERVAL_IN_SECONDS = 1;
61+
private static final int MAX_INACTIVE_INTERVAL_IN_SECONDS = 2;
6262

6363
@Autowired
6464
private SessionRepository<S> repository;

0 commit comments

Comments
 (0)