Skip to content

Commit 98b4ee9

Browse files
authored
🐛 fix(test): resolve flaky write non-starvation test (#490)
The test only signaled the last reader's release event and relied on chain propagation, but the 3-second join timeout was too tight for PyPy on macOS where process spawn and SQLite operations are slower. Signal all reader release events explicitly and increase the join timeout to 10 seconds to accommodate slower runtimes.
1 parent ef15f6b commit 98b4ee9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/test_read_write.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -256,7 +256,7 @@ def test_write_non_starvation(lock_file: str) -> None:
256256
event.set()
257257

258258
for idx, reader in enumerate(readers):
259-
reader.join(timeout=3)
259+
reader.join(timeout=10)
260260
assert not reader.is_alive(), f"Reader {idx} did not exit cleanly"
261261

262262

0 commit comments

Comments
 (0)