| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 7b0e937 commit d12ed29
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -11,14 +11,9 @@ if (common.isOSX) { | |||
| 11 | 11 | ||
| 12 | 12 | const client = dgram.createSocket('udp4'); | |
| 13 | 13 | ||
| 14 | - const timer = setTimeout(function() { | ||
| 15 | - throw new Error('Timeout'); | ||
| 16 | - }, common.platformTimeout(200)); | ||
| 17 | - | ||
| 18 | 14 | client.on('message', common.mustCall(function onMessage(buf, info) { | |
| 19 | 15 | const expected = Buffer.alloc(0); | |
| 20 | 16 | assert.ok(buf.equals(expected), 'message was received correctly'); | |
| 21 | - clearTimeout(timer); | ||
| 22 | 17 | client.close(); | |
| 23 | 18 | })); | |
| 24 | 19 | ||
| Back | FazBrowse Home | New Git URL |
0 commit comments