We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 23fb430 commit c4d67f2Copy full SHA for c4d67f2
test/parallel/test-dgram-listen-after-bind.js
@@ -21,6 +21,7 @@
21
22
'use strict';
23
require('../common');
24
+const common = require('../common');
25
const assert = require('assert');
26
const dgram = require('dgram');
27
@@ -33,12 +34,12 @@ const timer = setTimeout(() => {
33
34
socket.close();
35
}, 100);
36
-socket.on('listening', () => {
37
+socket.on('listening', common.mustCall(() => {
38
clearTimeout(timer);
39
fired = true;
40
-});
41
+}));
42
-socket.on('close', () => {
43
+socket.on('close', common.mustCall(() => {
44
assert(fired, 'listening should fire after bind');
45
0 commit comments