Kaydet (Commit) a3fffdca authored tarafından Brian Gianforcaro's avatar Brian Gianforcaro Kaydeden (comit) Tim Graham

Fixed #25558 -- Fixed nondeterministic test failure on Windows: test_clearsessions_command.

The test session without an expiration date added in refs #22938 wasn't
always deleted on Windows because get_expiry_age() returns zero and the
file backend didn't consider that an expired session.
üst c1b6a8a9
......@@ -99,7 +99,7 @@ class SessionStore(SessionBase):
# Remove expired sessions.
expiry_age = self.get_expiry_age(expiry=self._expiry_date(session_data))
if expiry_age < 0:
if expiry_age <= 0:
session_data = {}
self.delete()
self.create()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment