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 862fd5b commit 92c8808
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 3 additions & 1 deletion test/fetch/index.http2.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
* governing permissions and limitations under the License.
*/

/* eslint-disable no-console */
/* eslint-env mocha */

import assert from 'assert';
Expand Down Expand Up @@ -118,7 +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}/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 92c8808

Please sign in to comment.