From ef5548a749529fc7827e8444ac365eee0347ec09 Mon Sep 17 00:00:00 2001 From: Denis Wolf Date: Wed, 30 Oct 2013 01:03:45 +0200 Subject: [PATCH] tests: categories.js is using testing db now --- tests/categories.js | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/tests/categories.js b/tests/categories.js index 5d03ebe167..032cd694c7 100644 --- a/tests/categories.js +++ b/tests/categories.js @@ -1,16 +1,13 @@ // this test currently needs to talk to the redis database. // get the redis config info from root directory's config.json: -var path = require('path'), - nconf = require('nconf'), - winston = require('winston'); -nconf.file({ file: path.join(__dirname, '../config.json') }); +var winston = require('winston'); process.on('uncaughtException', function (err) { winston.error('Encountered error while running test suite: ' + err.message); }); var assert = require('assert'), - RDB = require('../src/redis'); + RDB = require('../mocks/redismock'); // Reds is not technically used in this test suite, but its invocation is required to stop the included // libraries from trying to connect to the default Redis host/port