From a875cbd59e58747293ed5ee02ee30bdb3437b326 Mon Sep 17 00:00:00 2001 From: Diamond Lewis Date: Wed, 10 Jul 2019 13:57:09 -0500 Subject: [PATCH] Fix #5794 --- spec/RedisCacheAdapter.spec.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/spec/RedisCacheAdapter.spec.js b/spec/RedisCacheAdapter.spec.js index 7f46326256..4f90022870 100644 --- a/spec/RedisCacheAdapter.spec.js +++ b/spec/RedisCacheAdapter.spec.js @@ -169,11 +169,12 @@ describe_only(() => { describe_only(() => { return process.env.PARSE_SERVER_TEST_CACHE === 'redis'; })('Redis Performance', function() { - const cacheAdapter = new RedisCacheAdapter(); + let cacheAdapter; let getSpy; let putSpy; beforeEach(async () => { + cacheAdapter = new RedisCacheAdapter(); await cacheAdapter.clear(); await reconfigureServer({ cacheAdapter,