Skip to content

Commit e213d78

Browse files
committed
Revert "Remove the fail_after note from AGENTS.md"
This reverts commit f2c826c.
1 parent f2c826c commit e213d78

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

‎AGENTS.md‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,7 @@ assigned to their author are closed automatically.
8484
- Use `anyio.Event` — set it in the callback/handler, `await event.wait()` in the test
8585
- For stream messages, use `await stream.receive()` instead of `sleep()` + `receive_nowait()`
8686
- Exception: `sleep()` is appropriate when testing time-based features (e.g., timeouts)
87+
- Wrap indefinite waits (`event.wait()`, `stream.receive()`) in `anyio.fail_after(5)` to prevent hangs
8788
- Pytest is configured with `filterwarnings = ["error"]`, so warnings fail
8889
tests. Don't silence warnings from your own code; fix the underlying cause.
8990
Scoped `ignore::` entries for upstream libraries are acceptable in

0 commit comments

Comments
 (0)