test: Add test for new pairlock deduplication

This commit is contained in:
Matthias
2026-04-06 09:58:58 +02:00
parent 9582bd3cd7
commit 6712d20578
2 changed files with 31 additions and 2 deletions
+2 -2
View File
@@ -1434,8 +1434,8 @@ def test_rpc_add_and_delete_lock(mocker, default_conf):
pair = "ETH/BTC"
rpc._rpc_add_lock(pair, datetime.now(UTC) + timedelta(minutes=4), "", "*")
rpc._rpc_add_lock(pair, datetime.now(UTC) + timedelta(minutes=5), "", "*")
rpc._rpc_add_lock(pair, datetime.now(UTC) + timedelta(minutes=10), "", "*")
rpc._rpc_add_lock(pair, datetime.now(UTC) + timedelta(minutes=20), "", "*")
rpc._rpc_add_lock(pair, datetime.now(UTC) + timedelta(minutes=50), "", "*")
locks = rpc._rpc_locks()
assert locks["lock_count"] == 3