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