Update test/redis_document_store_spec.js

This commit is contained in:
colin 2023-12-27 15:19:19 +00:00
parent f5ecab9c99
commit 677195d59b
1 changed files with 7 additions and 2 deletions

View File

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