Fix jasmine 3.4 (#5573)

* Fix failing tests

* just ignore the test for now.

* Bumping jasmine

* Fix pg unhandled exception

* Improving the way the test is fixed

* Fix unhandled failed promise in postgres test

* Solving unhandled promise fail on redis test

* Returning the excluded test

* Fixing package-lock

* Fix unhandled promise from redis test
This commit is contained in:
Antonio Davi Macedo Coelho de Castro
2019-05-09 09:12:30 -07:00
committed by Arthur Cinader
parent 9232fcc601
commit 81ecf2fd74
6 changed files with 67 additions and 39 deletions

View File

@@ -97,11 +97,13 @@ class ParseServer {
logging.setLogger(loggerController);
const dbInitPromise = databaseController.performInitialization();
hooksController.load();
const hooksLoadPromise = hooksController.load();
// Note: Tests will start to fail if any validation happens after this is called.
if (process.env.TESTING) {
__indexBuildCompletionCallbackForTests(dbInitPromise);
__indexBuildCompletionCallbackForTests(
Promise.all([dbInitPromise, hooksLoadPromise])
);
}
if (cloud) {