From 87403cfacfbdee41ef678a4858484e8b0014300d Mon Sep 17 00:00:00 2001 From: Jonathan Green Date: Mon, 10 Jun 2024 21:34:18 -0300 Subject: [PATCH] Fix tests --- src/palace/manager/service/redis/models/patron_activity.py | 2 +- tests/manager/api/controller/test_loan.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/palace/manager/service/redis/models/patron_activity.py b/src/palace/manager/service/redis/models/patron_activity.py index 5a7fbf21e1..ca4f3faa5e 100644 --- a/src/palace/manager/service/redis/models/patron_activity.py +++ b/src/palace/manager/service/redis/models/patron_activity.py @@ -137,7 +137,7 @@ class PatronActivity: LOCKED_TIMEOUT = 60 * 15 # 15 minutes FAILED_TIMEOUT = 60 * 60 * 4 # 4 hours SUCCESS_TIMEOUT = 60 * 60 * 12 # 12 hours - NOT_SUPPORTED_TIMEOUT = None # Never expires + NOT_SUPPORTED_TIMEOUT = 60 * 60 * 24 * 14 # 2 week # We use a lua script so that we can atomically check the status and then update it # without worrying about race conditions. The script checks that the state is diff --git a/tests/manager/api/controller/test_loan.py b/tests/manager/api/controller/test_loan.py index 625511f85e..20f6cb771e 100644 --- a/tests/manager/api/controller/test_loan.py +++ b/tests/manager/api/controller/test_loan.py @@ -1478,7 +1478,7 @@ def test_active_loans( assert sync_task.apply_async.call_count == 1 sync_task.apply_async.assert_any_call( ( - loan_fixture.library.id, + loan_fixture.collection.id, patron.id, loan_fixture.valid_credentials["password"], ),