Skip to content

Commit 2afa91a

Browse files
committed
fix(test): fix test for http2 with null socket
1 parent db834a9 commit 2afa91a

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

test/test.js

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -616,11 +616,8 @@ var topDescribe = function (type, createServer) {
616616
})
617617
}))
618618
.get('/')
619-
.end(function () {
620-
assert.strictEqual(this.res.statusCode, 200)
621-
assert.strictEqual(this.res.text, 'ok')
622-
done()
623-
})
619+
.expect(200)
620+
.end(done)
624621
})
625622
})
626623
}

0 commit comments

Comments
 (0)