Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathangreen committed Jun 11, 2024
1 parent 1f42316 commit 87403cf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/palace/manager/service/redis/models/patron_activity.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion tests/manager/api/controller/test_loan.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"],
),
Expand Down

0 comments on commit 87403cf

Please sign in to comment.