Skip to content

Commit

Permalink
Reduce test flakiness
Browse files Browse the repository at this point in the history
Increase the fudge factor of a test checking lock mechanisms.
This should reduce its flakiness.

Signed-off-by: Salvatore Mesoraca <[email protected]>
  • Loading branch information
aiven-sal committed Jun 13, 2024
1 parent dcdbde3 commit f34c03f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/test_lock.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ def test_blocking_timeout(self, r):
assert lock1.acquire(blocking=False)
bt = 0.4
sleep = 0.05
fudge_factor = 0.05
fudge_factor = 0.1
lock2 = self.get_lock(r, "foo", sleep=sleep, blocking_timeout=bt)
start = time.monotonic()
assert not lock2.acquire()
Expand Down

0 comments on commit f34c03f

Please sign in to comment.