From 920eb09b3b6c2b6bcd0a9eccdc0f5a9a42b3915a Mon Sep 17 00:00:00 2001 From: fflorent Date: Mon, 1 Apr 2024 12:51:51 +0200 Subject: [PATCH] Fix ManyFetches test so it checks TEST_REDIS_URL is set --- test/server/lib/ManyFetches.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/test/server/lib/ManyFetches.ts b/test/server/lib/ManyFetches.ts index 0565bf88..59db2551 100644 --- a/test/server/lib/ManyFetches.ts +++ b/test/server/lib/ManyFetches.ts @@ -28,6 +28,12 @@ describe('ManyFetches', function() { let docs: TestServer; let userApi: UserAPIImpl; + before(function () { + if (!process.env.TEST_REDIS_URL) { + return this.skip(); + } + }); + beforeEach(async function() { oldEnv = new EnvironmentSnapshot(); // Needed for prepareDatabase, which changes process.env log.info("Starting servers");