Skip to content

Commit 4c219b0

Browse files
Isaac-yz-Liutargos
authored andcommittedOct 2, 2024
test: fix timeout not being cleared
PR-URL: #54242 Reviewed-By: Michaël Zasso <targos@protonmail.com> Reviewed-By: Jake Yuesong Li <jake.yuesong@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Tierney Cyren <hello@bnb.im>
1 parent e446517 commit 4c219b0

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed
 

‎test/parallel/test-pipe-file-to-http.js

+1-2
Original file line numberDiff line numberDiff line change
@@ -32,11 +32,10 @@ const filename = tmpdir.resolve('big');
3232
let count = 0;
3333

3434
const server = http.createServer((req, res) => {
35-
let timeoutId;
3635
assert.strictEqual(req.method, 'POST');
3736
req.pause();
3837

39-
setTimeout(() => {
38+
const timeoutId = setTimeout(() => {
4039
req.resume();
4140
}, 1000);
4241

0 commit comments

Comments
 (0)
Please sign in to comment.