Fix Redis session expiration entry deletion

Closes gh-585
This commit is contained in:
Stefan Wurzinger
2021-03-11 18:43:50 +01:00
committed by Eleftheria Stein-Kousathana
parent c93513f18f
commit 69285f2a9a
2 changed files with 14 additions and 4 deletions

View File

@@ -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.
@@ -164,4 +164,11 @@ class RedisSessionExpirationPolicyTests {
verify(this.hashOperations).persist();
}
@Test
void onDeleteRemoveExpirationEntry() {
this.policy.onDelete(this.session);
verify(this.setOperations).remove("expires:" + this.session.getId());
}
}