]> git.lizzy.rs Git - rust.git/commit
test: Fix the tcp-accept-stress test
authorAlex Crichton <alex@alexcrichton.com>
Sun, 31 Aug 2014 06:43:20 +0000 (23:43 -0700)
committerAlex Crichton <alex@alexcrichton.com>
Sun, 31 Aug 2014 06:43:20 +0000 (23:43 -0700)
commit4ddbb0d4b1edb6f8f1fedf34e4bdc96710402800
tree19a45685371362d369ef9b399aef5a7bb07c12a2
parentc2564540de933c2dfe48cc72f947b29853ab2803
test: Fix the tcp-accept-stress test

It was previously asserted that each thread received at least one connection,
but this is not guaranteed to always be the case due to scheduling. This test
also deadlocked on failure due to a lingering reference to the sending half of
the channel, so that reference is now also eagerly dropped so the test can fail
properly if something bad happens.

Closes #16872
src/test/run-pass/tcp-accept-stress.rs