Skip to content

Commit e0bfa43

Browse files
Trotttargos
authored andcommitted
test: remove unnecessary common.platformTimeout() call
Applying platformTimeout() to the interval is counterproductive. It should be applied to the request timeout duration only. PR-URL: #30677 Reviewed-By: Gireesh Punathil <[email protected]> Reviewed-By: James M Snell <[email protected]>
1 parent 9d4a854 commit e0bfa43

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/sequential/test-http-server-consumed-timeout.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ function runTest(timeoutDuration) {
4141
const interval = setInterval(() => {
4242
intervalWasInvoked = true;
4343
req.write('a');
44-
}, common.platformTimeout(25));
44+
}, 25);
4545
setTimeout(() => {
4646
clearInterval(interval);
4747
req.end();

0 commit comments

Comments
 (0)