test: fix spelling error (#972)
This commit is contained in:
parent
32ebd1bd6a
commit
9248660efd
1 changed files with 2 additions and 2 deletions
|
@ -39,7 +39,7 @@ describe('res.writable', () => {
|
||||||
});
|
});
|
||||||
|
|
||||||
describe('when socket closed before response sent', () => {
|
describe('when socket closed before response sent', () => {
|
||||||
function requsetClosed(server){
|
function requestClosed(server){
|
||||||
const port = server.address().port;
|
const port = server.address().port;
|
||||||
const buf = Buffer.from('GET / HTTP/1.1\r\nHost: localhost:' + port + '\r\nConnection: keep-alive\r\n\r\n');
|
const buf = Buffer.from('GET / HTTP/1.1\r\nHost: localhost:' + port + '\r\nConnection: keep-alive\r\n\r\n');
|
||||||
const client = net.connect(port);
|
const client = net.connect(port);
|
||||||
|
@ -59,7 +59,7 @@ describe('res.writable', () => {
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
const server = app.listen();
|
const server = app.listen();
|
||||||
requsetClosed(server);
|
requestClosed(server);
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue