Skip to content

Commit

Permalink
fix flaky test
Browse files Browse the repository at this point in the history
  • Loading branch information
stefan-guggisberg committed Apr 13, 2023
1 parent 92c8808 commit 0c6046b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"prepare": "husky install"
},
"mocha": {
"timeout": "5000",
"timeout": "10000",
"recursive": "true",
"reporter": "mocha-multi-reporters",
"reporter-options": "configFile=.mocha-multi.json"
Expand Down
4 changes: 2 additions & 2 deletions test/fetch/index.http2.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -119,8 +119,8 @@ describe('HTTP/2-specific Fetch Tests', () => {

it.only('concurrent HTTP/2 requests to same origin', async () => {
const N = 50; // # of parallel requests
// const TEST_URL = `${server.origin}/bytes`;
const TEST_URL = `${server.origin}/hello`;
const TEST_URL = `${server.origin}/bytes`;
// const TEST_URL = `${server.origin}/hello`;
// generete array of 'randomized' urls
const urls = Array.from({ length: N }, () => Math.floor(Math.random() * N)).map((num) => `${TEST_URL}?count=${num}`);

Expand Down

0 comments on commit 0c6046b

Please sign in to comment.