| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 5b93356 commit c1aa5f0
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -31,13 +31,13 @@ function onResolve() { | |||
| 31 | 31 | 'fast I/O was throttled due to threadpool congestion.'); | |
| 32 | 32 | ||
| 33 | 33 | // More realistic expectation: finish disc I/O at least within | |
| 34 | - // a time duration that is 1/100th of net I/O. | ||
| 34 | + // a time duration that is half of net I/O. | ||
| 35 | 35 | // Ideally the slow I/O should not affect the fast I/O as those | |
| 36 | 36 | // have two different thread-pool buckets. However, this could be | |
| 37 | 37 | // highly load / platform dependent, so don't be very greedy. | |
| 38 | 38 | const fastIOtime = fastIOend - start; | |
| 39 | 39 | const slowIOtime = slowIOend - start; | |
| 40 | - const expectedMax = slowIOtime / 100; | ||
| 40 | + const expectedMax = slowIOtime / 2; | ||
| 41 | 41 | assert.ok(fastIOtime < expectedMax, | |
| 42 | 42 | 'fast I/O took longer to complete, ' + | |
| 43 | 43 | `actual: ${fastIOtime}, expected: ${expectedMax}`); | |
| Back | FazBrowse Home | New Git URL |
0 commit comments