Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

testPlatformConnectErrorIsForwardedOnTimeout port reuse #716

Merged
merged 2 commits into from
Nov 3, 2023

Conversation

PeterAdams-A
Copy link
Collaborator

Motivation:

The above test has been seen to fail with port already in use. The test assumes that a port can be bound to twice in a row. It's possible that another process takes the port between the two binds - this can be stopped by binding a second time before stopping the first.

Modifications:

Allow port reuse and reorder the test to bind a second time before releasing the first.

Result:

Test should no longer be flaky.

Motivation:

The above test has been seen to fail with port already in use.
The test assumes that a port can be bound to twice in a row.
It's possible that another process takes the port between the two
binds - this can be stopped by binding a second time before stopping
the first.

Modifications:

Allow port reuse and reorder the test to bind a second time before
releasing the first.

Result:

Test should no longer be flaky.
Copy link
Collaborator

@dnadoba dnadoba left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for looking into this!

@simonjbeaumont
Copy link
Collaborator

@swift-server-bot test this please

1 similar comment
@dnadoba
Copy link
Collaborator

dnadoba commented Nov 3, 2023

@swift-server-bot test this please

@dnadoba dnadoba enabled auto-merge (squash) November 3, 2023 13:55
@dnadoba dnadoba merged commit c70e085 into swift-server:main Nov 3, 2023
6 of 8 checks passed
@gjcairo gjcairo added the semver/none For PRs that when merged do not need a bump in version number. label Dec 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
semver/none For PRs that when merged do not need a bump in version number.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants