Disable tests that don't work in Postgres, and don't start a mongo for postgres tests (#2481)

* Disable tests that don't work in Postgres, and don't start a mongo for postgres tests

* Remove unnecessary chages

* remove more unnecessary chagnes
This commit is contained in:
Drew
2016-08-07 19:21:01 -07:00
committed by Florent Vilmart
parent f27dff0ae6
commit ae36200d1f
7 changed files with 27 additions and 17 deletions

View File

@@ -342,6 +342,16 @@ global.fit_exclude_dbs = excluded => {
}
}
global.describe_only_db = db => {
if (process.env.PARSE_SERVER_TEST_DB == db) {
return describe;
} else if (!process.env.PARSE_SERVER_TEST_DB && db == 'mongo') {
return describe;
} else {
return () => {};
}
}
// LiveQuery test setting
require('../src/LiveQuery/PLog').logLevel = 'NONE';
var libraryCache = {};