From 92c88082c6a25f0c1494a23b3d10752e4d5aa833 Mon Sep 17 00:00:00 2001 From: Stefan Guggisberg Date: Thu, 13 Apr 2023 20:03:02 +0200 Subject: [PATCH] fix flaky test --- package-lock.json | 4 ++-- test/fetch/index.http2.test.js | 4 +++- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/package-lock.json b/package-lock.json index d6efe01..206bedc 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@adobe/fetch", - "version": "4.0.6", + "version": "4.0.7", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "@adobe/fetch", - "version": "4.0.6", + "version": "4.0.7", "license": "Apache-2.0", "dependencies": { "debug": "4.3.4", diff --git a/test/fetch/index.http2.test.js b/test/fetch/index.http2.test.js index d592c81..dbb20d1 100644 --- a/test/fetch/index.http2.test.js +++ b/test/fetch/index.http2.test.js @@ -10,6 +10,7 @@ * governing permissions and limitations under the License. */ +/* eslint-disable no-console */ /* eslint-env mocha */ import assert from 'assert'; @@ -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}`);