From ae9b5654d3f9605fd7b6d5c17caab36feda8f01a Mon Sep 17 00:00:00 2001 From: barisusakli Date: Sun, 16 Oct 2016 06:15:11 +0300 Subject: [PATCH] set isPrimary and isCluster --- test/mocks/databasemock.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/test/mocks/databasemock.js b/test/mocks/databasemock.js index 2d3d72abfd..16bd39ba0d 100644 --- a/test/mocks/databasemock.js +++ b/test/mocks/databasemock.js @@ -23,6 +23,11 @@ relative_path: '' }); + if (!nconf.get('isCluster')) { + nconf.set('isPrimary', 'true'); + nconf.set('isCluster', 'false'); + } + var dbType = nconf.get('database'); var testDbConfig = nconf.get('test_database'); var productionDbConfig = nconf.get(dbType);