Update test/redis_document_store_spec.js
This commit is contained in:
parent
153db1645a
commit
ff163c66b4
|
@ -6,6 +6,16 @@ winston.remove(winston.transports.Console);
|
||||||
|
|
||||||
var RedisDocumentStore = require('../lib/document_stores/redis');
|
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() {
|
describe('redis_document_store', function() {
|
||||||
|
|
||||||
beforeEach(function(done) {
|
beforeEach(function(done) {
|
||||||
|
|
Loading…
Reference in New Issue