1
0
mirror of https://github.com/EDCD/EDMarketConnector.git synced 2025-04-14 08:17:13 +03:00

tests: journal_lock: test_update_lock_same: Make .obtain.lock() an assert

This commit is contained in:
Athanasius 2022-09-05 11:51:12 +01:00
parent b47f278655
commit 9915c5435d
No known key found for this signature in database
GPG Key ID: 8C392035DD80FD62

View File

@ -353,7 +353,7 @@ class TestJournalLock:
"""
# First actually obtain the lock, and check it worked
jlock = JournalLock()
jlock.obtain_lock()
assert jlock.obtain_lock() == JournalLockResult.LOCKED
assert jlock.locked
# Now store the 'current' journaldir for reference and attempt