Skip to content

feat: Add AssertReceiveTimeout check#16

Merged
s3cur3 merged 1 commit into
mainfrom
ty/assert-receive
May 27, 2026
Merged

feat: Add AssertReceiveTimeout check#16
s3cur3 merged 1 commit into
mainfrom
ty/assert-receive

Conversation

@s3cur3
Copy link
Copy Markdown
Collaborator

@s3cur3 s3cur3 commented May 27, 2026

Adds a new check which flags assert_receive calls that specify explicit timeouts. These timeouts can seem like a fine idea in dev, but when your test later runs on a dog-slow CI machine, the tight timeouts can cause flakiness. (In CI, you might run with an absurdly long timeout to avoid flakiness.)

Supports an optional min_assert_receive_timeout parameter that allows literal assert_receive timeouts greater than or equal to the configured minimum. Also supports an optional max_refute_receive_timeout parameter that flags refute_receive calls whose timeout exceeds the configured maximum (because refute_receive always blocks for its full timeout, setting a lower bound on the test's runtime).

Adds a new check which flags `assert_receive` calls that specify explicit timeouts. These timeouts can seem like a fine idea in dev, but when your test later runs on a dog-slow CI machine, the tight timeouts can cause flakiness. (In CI, you might run with an absurdly long timeout to avoid flakiness.)

Supports an optional `min_assert_receive_timeout` parameter that allows literal `assert_receive` timeouts greater than or equal to the configured minimum. Also supports an optional `max_refute_receive_timeout` parameter that flags `refute_receive` calls whose timeout exceeds the configured maximum (because `refute_receive` always blocks for its full timeout, setting a lower bound on the test's runtime).
@s3cur3 s3cur3 merged commit 980b12f into main May 27, 2026
3 checks passed
@s3cur3 s3cur3 deleted the ty/assert-receive branch May 27, 2026 18:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant