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

test: refactor flaky net-error-twice #4061

Closed
wants to merge 1 commit into from

Conversation

Trott
Copy link
Member

@Trott Trott commented Nov 28, 2015

The test was not reliably creating the error event on Windows 2012.

This makes the test more robust by delaying the destruction of the
socket until after data starts arriving rather than immediately upon
connection.

Fixes: #4057

The test was not reliably creating the error event on Windows 2012.

This makes the test more robust by delaying the start of the server
write until nextTick, allowing the connection to close and cause the
error more reliably on Windows 2012.

Fixes: nodejs#4057
@Trott Trott added net Issues and PRs related to the net subsystem. windows Issues and PRs related to the Windows platform. test Issues and PRs related to the tests. labels Nov 28, 2015
@Trott
Copy link
Member Author

Trott commented Nov 28, 2015

@Trott Trott closed this Nov 28, 2015
@Trott
Copy link
Member Author

Trott commented Nov 28, 2015

@Trott
Copy link
Member Author

Trott commented Nov 29, 2015

(Oof, this does not fix. Will try something else.)

@rvagg
Copy link
Member

rvagg commented Nov 30, 2015

you're a champion @Trott, thanks so much for chipping away at the flaky tests (with or without success), I'm sure everyone will appreciate it even without realising how much work goes in to fixing these

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
net Issues and PRs related to the net subsystem. test Issues and PRs related to the tests. windows Issues and PRs related to the Windows platform.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants