Fix ManyFetches test so it checks TEST_REDIS_URL is set

This commit is contained in:
fflorent 2024-04-01 12:51:51 +02:00 committed by jordigh
parent f405ae715b
commit 920eb09b3b

View File

@ -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");