diff --git a/test/internet/test-uv-threadpool-schedule.js b/test/internet/test-uv-threadpool-schedule.js index 636364b30f8..9e61d875f20 100644 --- a/test/internet/test-uv-threadpool-schedule.js +++ b/test/internet/test-uv-threadpool-schedule.js @@ -31,13 +31,13 @@ function onResolve() { 'fast I/O was throttled due to threadpool congestion.'); // More realistic expectation: finish disc I/O at least within - // a time duration that is 1/100th of net I/O. + // a time duration that is half of net I/O. // Ideally the slow I/O should not affect the fast I/O as those // have two different thread-pool buckets. However, this could be // highly load / platform dependent, so don't be very greedy. const fastIOtime = fastIOend - start; const slowIOtime = slowIOend - start; - const expectedMax = slowIOtime / 100; + const expectedMax = slowIOtime / 2; assert.ok(fastIOtime < expectedMax, 'fast I/O took longer to complete, ' + `actual: ${fastIOtime}, expected: ${expectedMax}`);