Skip to content

Commit

Permalink
fix flaky test
Browse files Browse the repository at this point in the history
  • Loading branch information
malmans2 committed Sep 9, 2024
1 parent 1a374be commit 38fd1f7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .github/workflows/on-push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,8 @@ jobs:
include:
- python-version: '3.9'
extra: -ci
- python-version: '3.12'
extra: -ci
- python-version: '3.11'
extra: -integration

Expand Down
2 changes: 1 addition & 1 deletion tests/test_50_io_encoder.py
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ def test_io_locker(
fs.touch(file_path)
fs.touch(f"{file_path}.lock")

process = subprocess.Popen(f"sleep 0.1; rm {file_path}.lock", shell=True)
process = subprocess.Popen(f"sleep 1; rm {file_path}.lock", shell=True)
with raises_or_warns:
cached_open(tmpfile)
assert process.wait() == 0
Expand Down

0 comments on commit 38fd1f7

Please sign in to comment.