Skip to content

Commit

Permalink
test: use platform timeout
Browse files Browse the repository at this point in the history
PR-URL: #54591
Refs: #54499
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Richard Lau <rlau@redhat.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Moshe Atlow <moshe@atlow.co.il>
  • Loading branch information
jakecastelli authored and targos committed Sep 26, 2024
1 parent 980dac3 commit b860094
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/parallel/test-http-outgoing-end-cork.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@ const common = require('../common');
const assert = require('assert');
const http = require('http');

const REQ_TIMEOUT = 500; // Set max ms of request time before abort
const REQ_TIMEOUT = common.platformTimeout(500); // Set max ms of request time before abort

// Set total allowed test timeout to avoid infinite loop
// that will hang test suite
const TOTAL_TEST_TIMEOUT = 1000;
const TOTAL_TEST_TIMEOUT = common.platformTimeout(1000);

// Placeholder for sockets handled, to make sure that we
// will reach a socket re-use case.
Expand Down

0 comments on commit b860094

Please sign in to comment.