We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0ede223 commit bd3cef7Copy full SHA for bd3cef7
test/pummel/test-net-connect-econnrefused.js
@@ -48,17 +48,14 @@ function pummel() {
48
}
49
50
function check() {
51
- setTimeout(function() {
+ setTimeout(common.mustCall(function() {
52
assert.strictEqual(process._getActiveRequests().length, 0);
53
const activeHandles = process._getActiveHandles();
54
assert.ok(activeHandles.every((val) => val.constructor.name !== 'Socket'));
55
- check_called = true;
56
- }, 0);
+ }), 0);
57
58
-let check_called = false;
59
60
process.on('exit', function() {
61
assert.strictEqual(rounds, ROUNDS);
62
assert.strictEqual(reqs, ROUNDS * ATTEMPTS_PER_ROUND);
63
- assert(check_called);
64
});
0 commit comments