about summary refs log tree commit diff
path: root/compiler/rustc_trait_selection/src
diff options
context:
space:
mode:
authorJosh Triplett <josh@joshtriplett.org>2025-06-08 20:11:19 -0700
committerJosh Triplett <josh@joshtriplett.org>2025-06-08 20:22:07 -0700
commit889f7cbffa5b7e89fe006c1d35dad42ef6ecc525 (patch)
tree9e3ab41f028c77b31c9bfca58f2af00adc31a76e /compiler/rustc_trait_selection/src
parentc31cccb7b5cc098b1a8c1794ed38d7fdbec0ccb0 (diff)
downloadrust-889f7cbffa5b7e89fe006c1d35dad42ef6ecc525.tar.gz
rust-889f7cbffa5b7e89fe006c1d35dad42ef6ecc525.zip
Avoid a gratuitous 10s wait in a stress test
`stress_recv_timeout_two_threads`, in the mpmc and mpsc testsuites,
is a stress test of the `recv_timeout` function. This test processes and
ignores timeouts, and just ensures that every sent value gets received.
As such, the exact length of the timeouts is not critical, only that
the timeout and sleep durations ensure that at least one timeout
occurred.

The current tests have 100 iterations, half of which sleep for 200ms,
causing the test to take 10s. This represents around 2/3rds of the
*total* runtime of the `library/std` testsuite.

Reduce this to 50 iterations where half of them sleep for 10ms, causing
the test to take 0.25s.

Add a check that at least one timeout occurred.
Diffstat (limited to 'compiler/rustc_trait_selection/src')
0 files changed, 0 insertions, 0 deletions