Skip to content

Commit

Permalink
bugfix: A failure of PgSQL unit-test
Browse files Browse the repository at this point in the history
  • Loading branch information
tanbro committed Apr 3, 2024
1 parent f39e3b4 commit 2ec7576
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/test_pg.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,10 @@ def fn_():
try:
with engine.connect() as c_:
l_ = create_sadlock(c_, key, xact=True)
bar.wait(10)
bar.wait(30)
with c_.begin():
self.assertFalse(l_.acquire(block=False))
sleep(3)
sleep(10)
self.assertTrue(l_.acquire(block=False))
except Exception as exc:
trd_exc = exc
Expand All @@ -63,7 +63,7 @@ def fn_():
lck = create_sadlock(conn, key, xact=True)
with conn.begin():
self.assertTrue(lck.acquire(block=False))
bar.wait(5)
bar.wait(30)
sleep(3)

trd.join()
Expand Down

0 comments on commit 2ec7576

Please sign in to comment.