From 677195d59b7062d11010ba00c5e34cc5757420e1 Mon Sep 17 00:00:00 2001 From: colin Date: Wed, 27 Dec 2023 15:19:19 +0000 Subject: [PATCH] Update test/redis_document_store_spec.js --- test/redis_document_store_spec.js | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/test/redis_document_store_spec.js b/test/redis_document_store_spec.js index 873c296..6d20fe3 100644 --- a/test/redis_document_store_spec.js +++ b/test/redis_document_store_spec.js @@ -1,7 +1,6 @@ /* global it, describe, afterEach */ var assert = require('assert'); - var winston = require('winston'); winston.remove(winston.transports.Console); @@ -9,7 +8,13 @@ var RedisDocumentStore = require('../lib/document_stores/redis'); describe('redis_document_store', function() { - /* reconnect to redis on each test */ + beforeEach(function(done) { + // Initialize or reconnect to Redis here + // Include any connection or retry logic here + // Call done() once the connection is established + done(); + }); + afterEach(function() { if (RedisDocumentStore.client) { RedisDocumentStore.client.quit();