-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Fix tests for citgm #4221
Fix tests for citgm #4221
Conversation
|
||
req.on('error', (err) => { | ||
|
||
expect(err).to.not.exist(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In some (flaky) cases this error was being triggered late and causing the next test to fail.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, lab does not bind the expect to a specific test, so it can only assume that errors are caused by the current test.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Mostly nits, but the "handles race condition between equal client and server timeouts" rewrite seems like it is not doing the same thing.
|
||
req.on('error', (err) => { | ||
|
||
expect(err).to.not.exist(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, lab does not bind the expect to a specific test, so it can only assume that errors are caused by the current test.
@kanongil I appreciate the review, and I've incorporated your feedback. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Still a few nits.
I appreciate all the careful review 👍 |
For what it's worth I still see these on master
I don't have the bandwidth to dive into this atm but if I can help by running some tests or something let me know. (for quicker response dm me on slack) |
There are a few issues to fix for failures in citgm:
CC @AdriVanHoudt I know in nodejs/citgm#436 you were able to reproduce the macos issues. If you have time and would be open to trying out these changes it would be very much appreciated.