Skip to content

Conversation

@alexcrichton
Copy link
Member

This test would read with a timeout and then send a UDP message, expecting the
message to be received. The receiving port, however, was bound in the child
thread so it could be the case that the timeout and send happens before the
child thread runs. To remedy this we just bind the port before the child thread
runs, moving it into the child later on.

cc #19120

This test would read with a timeout and then send a UDP message, expecting the
message to be received. The receiving port, however, was bound in the child
thread so it could be the case that the timeout and send happens before the
child thread runs. To remedy this we just bind the port before the child thread
runs, moving it into the child later on.

cc rust-lang#19120
bors added a commit that referenced this pull request Dec 16, 2014
std: Bind port early to make a test more reliable

Reviewed-by: huonw
bors referenced this pull request Dec 16, 2014
Using a type alias for iterator implementations is fragile since this
exposes the implementation to users of the iterator, and any changes
could break existing code.

This commit changes the iterators of `VecMap` to use
proper new types, rather than type aliases.  However, since it is
fair-game to treat a type-alias as the aliased type, this is a:

[breaking-change].
bors added a commit that referenced this pull request Dec 16, 2014
std: Bind port early to make a test more reliable

Reviewed-by: huonw
bors referenced this pull request Dec 16, 2014
This creates an enormous amount of spew.
brson added a commit that referenced this pull request Dec 16, 2014
This test would read with a timeout and then send a UDP message, expecting the
message to be received. The receiving port, however, was bound in the child
thread so it could be the case that the timeout and send happens before the
child thread runs. To remedy this we just bind the port before the child thread
runs, moving it into the child later on.

cc #19120
bors added a commit that referenced this pull request Dec 17, 2014
std: Bind port early to make a test more reliable

Reviewed-by: huonw
alexcrichton added a commit to alexcrichton/rust that referenced this pull request Dec 17, 2014
This test would read with a timeout and then send a UDP message, expecting the
message to be received. The receiving port, however, was bound in the child
thread so it could be the case that the timeout and send happens before the
child thread runs. To remedy this we just bind the port before the child thread
runs, moving it into the child later on.

cc rust-lang#19120
@bors bors merged commit 0d38cae into rust-lang:master Dec 17, 2014
@alexcrichton alexcrichton deleted the flaky-test branch December 28, 2014 06:40
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.

None yet

4 participants