Update test/redis_document_store_spec.js

This commit is contained in:
colin 2023-12-27 15:43:43 +00:00
parent 153db1645a
commit ff163c66b4
1 changed files with 10 additions and 0 deletions

View File

@ -6,6 +6,16 @@ winston.remove(winston.transports.Console);
var RedisDocumentStore = require('../lib/document_stores/redis');
RedisDocumentStore.client.ttl('hello1', function(err, res) {
if (err) {
console.error("Redis TTL Error:", err);
done(err); // This will fail the test and show the error
} else {
assert.ok(res > 1);
done();
}
});
describe('redis_document_store', function() {
beforeEach(function(done) {