-
Notifications
You must be signed in to change notification settings - Fork 10
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: fix race condition in connection-handshake #260
Conversation
test/node/connection-handshake.js
Outdated
test.pass('connection must be closed'); | ||
}); | ||
const connection = net.connect(port, error => | ||
test.assertNot(error, 'must connect to server') |
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.
Nit: this function should have braces.
Strictly speaking, this doesn't have anything to do with macOS per se, it's just the bug hasn't been reproducing on Linux, so perhaps something like "test: fix race condition in connection-handshake" might be a better commit message. Aside from that, the fact that it was only failing on macOS consistently makes it apparent that we need better platform coverage in CI, i.e., we should add macOS to the Travis configuration matrix and start using AppVeyor to test code on Windows. |
426d675
to
7122770
Compare
7122770
to
709ee7d
Compare
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
* Use only latests releases of Node.js 6.x, 7.x and 8.x. * Update Ubuntu from Precise to Trusty. * Don't install a custom compiler, Trusty already has one that should support C++11. * Run tests on macOS too. * Don't install Firefox and don't launch the fake X server since we don't currently have browser tests anymore. When we do, it will require to rewrite that part of the config in a cross-platform manner. Fixes: #262 Refs: #260 (comment)
I'd want to fast-track this fix. Without the patch, tests are currently failing on master for me. |
PR-URL: #260 Reviewed-By: Alexey Orlenko <eaglexrlnk@gmail.com> Reviewed-By: Mykola Bilochub <nbelochub@gmail.com> Reviewed-By: Denys Otrishko <shishugi@gmail.com>
Landed in 90c064c. |
* Use only latests releases of Node.js 6.x, 7.x and 8.x. * Update Ubuntu from Precise to Trusty. * Don't install a custom compiler, Trusty already has one that should support C++11. * Run tests on macOS too. * Don't install Firefox and don't launch the fake X server since we don't currently have browser tests anymore. When we do, it will require to rewrite that part of the config in a cross-platform manner. Fixes: #262 Refs: #260 (comment)
* Use only latests releases of Node.js 6.x, 7.x and 8.x. * Update Ubuntu from Precise to Trusty. * Don't install a custom compiler, Trusty already has one that should support C++11. * Run tests on macOS too. * Don't install Firefox and don't launch the fake X server since we don't currently have browser tests anymore. When we do, it will require to rewrite that part of the config in a cross-platform manner. Fixes: #262 Refs: #260 (comment)
* Use only latests releases of Node.js 6.x, 7.x and 8.x. * Update Ubuntu from Precise to Trusty. * Don't install a custom compiler, Trusty already has one that should support C++11. * Run tests on macOS too. * Don't install Firefox and don't launch the fake X server since we don't currently have browser tests anymore. When we do, it will require to rewrite that part of the config in a cross-platform manner. Fixes: #262 Refs: #260 (comment)
* Use only latests releases of Node.js 6.x, 7.x and 8.x. * Update Ubuntu from Precise to Trusty. * Don't install a custom compiler, Trusty already has one that should support C++11. * Run tests on macOS too. * Don't install Firefox and don't launch the fake X server since we don't currently have browser tests anymore. When we do, it will require to rewrite that part of the config in a cross-platform manner. Fixes: #262 Refs: #260 (comment) PR-URL: #263 Reviewed-By: Dmytro Nechai <nechaido@gmail.com>
* Use only latests releases of Node.js 6.x, 7.x and 8.x. * Update Ubuntu from Precise to Trusty. * Don't install a custom compiler, Trusty already has one that should support C++11. * Run tests on macOS too. * Don't install Firefox and don't launch the fake X server since we don't currently have browser tests anymore. When we do, it will require to rewrite that part of the config in a cross-platform manner. Fixes: #262 Refs: #260 (comment) PR-URL: #263 Reviewed-By: Dmytro Nechai <nechaido@gmail.com>
Refs: #260 (comment) PR-URL: #261 Reviewed-By: Dmytro Nechai <nechaido@gmail.com>
PR-URL: #260 Reviewed-By: Alexey Orlenko <eaglexrlnk@gmail.com> Reviewed-By: Mykola Bilochub <nbelochub@gmail.com> Reviewed-By: Denys Otrishko <shishugi@gmail.com>
* Use only latests releases of Node.js 6.x, 7.x and 8.x. * Update Ubuntu from Precise to Trusty. * Don't install a custom compiler, Trusty already has one that should support C++11. * Run tests on macOS too. * Don't install Firefox and don't launch the fake X server since we don't currently have browser tests anymore. When we do, it will require to rewrite that part of the config in a cross-platform manner. Fixes: #262 Refs: #260 (comment) PR-URL: #263 Reviewed-By: Dmytro Nechai <nechaido@gmail.com>
Refs: #260 (comment) PR-URL: #261 Reviewed-By: Dmytro Nechai <nechaido@gmail.com>
PR-URL: #260 Reviewed-By: Alexey Orlenko <eaglexrlnk@gmail.com> Reviewed-By: Mykola Bilochub <nbelochub@gmail.com> Reviewed-By: Denys Otrishko <shishugi@gmail.com>
* Use only latests releases of Node.js 6.x, 7.x and 8.x. * Update Ubuntu from Precise to Trusty. * Don't install a custom compiler, Trusty already has one that should support C++11. * Run tests on macOS too. * Don't install Firefox and don't launch the fake X server since we don't currently have browser tests anymore. When we do, it will require to rewrite that part of the config in a cross-platform manner. Fixes: #262 Refs: #260 (comment) PR-URL: #263 Reviewed-By: Dmytro Nechai <nechaido@gmail.com>
Refs: #260 (comment) PR-URL: #261 Reviewed-By: Dmytro Nechai <nechaido@gmail.com>
* Use only latests releases of Node.js 6.x, 7.x and 8.x. * Update Ubuntu from Precise to Trusty. * Don't install a custom compiler, Trusty already has one that should support C++11. * Run tests on macOS too. * Don't install Firefox and don't launch the fake X server since we don't currently have browser tests anymore. When we do, it will require to rewrite that part of the config in a cross-platform manner. Fixes: metarhia/jstp#262 Refs: metarhia/jstp#260 (comment) PR-URL: metarhia/jstp#263 Reviewed-By: Dmytro Nechai <nechaido@gmail.com>
Refs: metarhia/jstp#260 (comment) PR-URL: metarhia/jstp#261 Reviewed-By: Dmytro Nechai <nechaido@gmail.com>
* Use only latests releases of Node.js 6.x, 7.x and 8.x. * Update Ubuntu from Precise to Trusty. * Don't install a custom compiler, Trusty already has one that should support C++11. * Run tests on macOS too. * Don't install Firefox and don't launch the fake X server since we don't currently have browser tests anymore. When we do, it will require to rewrite that part of the config in a cross-platform manner. Fixes: metarhia/jstp#262 Refs: metarhia/jstp#260 (comment) PR-URL: metarhia/jstp#263 Reviewed-By: Dmytro Nechai <nechaido@gmail.com>
Refs: metarhia/jstp#260 (comment) PR-URL: metarhia/jstp#261 Reviewed-By: Dmytro Nechai <nechaido@gmail.com>
* Use only latests releases of Node.js 6.x, 7.x and 8.x. * Update Ubuntu from Precise to Trusty. * Don't install a custom compiler, Trusty already has one that should support C++11. * Run tests on macOS too. * Don't install Firefox and don't launch the fake X server since we don't currently have browser tests anymore. When we do, it will require to rewrite that part of the config in a cross-platform manner. Fixes: metarhia/jstp#262 Refs: metarhia/jstp#260 (comment) PR-URL: metarhia/jstp#263 Reviewed-By: Dmytro Nechai <nechaido@gmail.com>
Refs: metarhia/jstp#260 (comment) PR-URL: metarhia/jstp#261 Reviewed-By: Dmytro Nechai <nechaido@gmail.com>
No description provided.