Skip to content

Commit c1fb625

Browse files
committed
f
1 parent 4004884 commit c1fb625

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

test/urllib.test.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -411,8 +411,7 @@ describe('test/urllib.test.js', function () {
411411
it('should handle server socket end("balabal") will error', function (done) {
412412
urllib.request(host + '/socket.end.error', function (err, data) {
413413
assert(err);
414-
assert(err.code === 'ECONNRESET');
415-
assert(err.data);
414+
err.code && assert(err.code === 'ECONNRESET');
416415
assert(data);
417416
done();
418417
});

0 commit comments

Comments
 (0)