| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent ce00a9d commit efb62aa
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -9,14 +9,9 @@ const client = dgram.createSocket('udp4'); | |||
| 9 | 9 | const buf = Buffer.allocUnsafe(256); | |
| 10 | 10 | ||
| 11 | 11 | const onMessage = common.mustCall(function(err, bytes) { | |
| 12 | - assert.strictEqual(err, null); | ||
| 13 | - assert.equal(bytes, buf.length); | ||
| 14 | - clearTimeout(timer); | ||
| 12 | + assert.ifError(err); | ||
| 13 | + assert.strictEqual(bytes, buf.length); | ||
| 15 | 14 | client.close(); | |
| 16 | 15 | }); | |
| 17 | 16 | ||
| 18 | - const timer = setTimeout(function() { | ||
| 19 | - throw new Error('Timeout'); | ||
| 20 | - }, common.platformTimeout(200)); | ||
| 21 | - | ||
| 22 | 17 | client.send(buf, common.PORT, common.localhostIPv4, onMessage); | |
| Back | FazBrowse Home | New Git URL |
0 commit comments