Skip to content

Commit c906e14

Browse files
committed
test: add reset_locks to the end of the new test
1 parent 8890cdb commit c906e14

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

tests/plugins/test_pairlocks.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -187,3 +187,6 @@ def test_PairLocks_no_duplicates(use_db, time_machine):
187187
# Different side - should create a new lock
188188
PairLocks.lock_pair("XRP/USDT", dt_now() + timedelta(minutes=4), "TestLock1", side="long")
189189
assert len(PairLocks.get_all_locks()) == 4
190+
191+
PairLocks.reset_locks()
192+
PairLocks.use_db = True

0 commit comments

Comments
 (0)