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);