mirror of
https://github.com/nodejs/node.git
synced 2026-11-27 17:52:27 -05:00
test: ensure assertions are reached on more tests
PR-URL: https://github.com/nodejs/node/pull/60759 Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
This commit is contained in:
57 files changed
+246
-286
No files matched your search
@@ -19,7 +19,7 @@ const expectedHeader = /^HTTP\/1\.1 200 OK/;
|
||||
const expectedBody = /hello world\n/;
|
||||
const expectCertError = /^UNABLE_TO_VERIFY_LEAF_SIGNATURE$/;
|
||||
|
||||
const checkRequest = (socket, server) => {
|
||||
function checkRequest(socket, server) {
|
||||
let result = '';
|
||||
socket.on('connect', common.mustCall((data) => {
|
||||
socket.write('GET / HTTP/1.1\r\nHost: example.com\r\n\r\n');
|
||||
|
||||
Reference in new issue
Block a user