Skip to content

Commit 627e484

Browse files
PoojaDurgadaddaleax
authored andcommitted
test: use mustCall() in test-http-timeout
PR-URL: #34996 Reviewed-By: Juan José Arboleda <[email protected]> Reviewed-By: Tobias Nießen <[email protected]>
1 parent cd4b2aa commit 627e484

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

‎test/parallel/test-http-timeout.js‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,17 +20,17 @@
2020
// USE OR OTHER DEALINGS IN THE SOFTWARE.
2121

2222
'use strict';
23-
require('../common');
23+
constcommon=require('../common');
2424

2525
consthttp=require('http');
2626
constCountdown=require('../common/countdown');
27+
constMAX_COUNT=11;
2728

28-
constserver=http.createServer(function(req,res){
29+
constserver=http.createServer(common.mustCall(function(req,res){
2930
res.writeHead(200,{'Content-Type': 'text/plain'});
3031
res.end('OK');
31-
});
32+
},MAX_COUNT));
3233

33-
constMAX_COUNT=11;
3434
constagent=newhttp.Agent({maxSockets: 1});
3535
constcountdown=newCountdown(MAX_COUNT,()=>server.close());
3636

0 commit comments

Comments
(0)