mirror of
https://github.com/seejohnrun/haste-server.git
synced 2024-11-01 03:21:21 +00:00
Clean up redis test to exit properly
This commit is contained in:
parent
844e664cb5
commit
01d9337f10
1 changed files with 11 additions and 0 deletions
|
@ -1,7 +1,18 @@
|
||||||
var RedisDocumentStore = require('../lib/redis_document_store');
|
var RedisDocumentStore = require('../lib/redis_document_store');
|
||||||
|
|
||||||
|
var winston = require('winston');
|
||||||
|
winston.remove(winston.transports.Console);
|
||||||
|
|
||||||
describe('redis_document_store', function() {
|
describe('redis_document_store', function() {
|
||||||
|
|
||||||
|
/* reconnect to redis on each test */
|
||||||
|
afterEach(function() {
|
||||||
|
if (RedisDocumentStore.client) {
|
||||||
|
RedisDocumentStore.client.quit();
|
||||||
|
RedisDocumentStore.client = false;
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
describe('set', function() {
|
describe('set', function() {
|
||||||
|
|
||||||
it('should be able to set a key and have an expiration set', function() {
|
it('should be able to set a key and have an expiration set', function() {
|
||||||
|
|
Loading…
Reference in a new issue