use promises and an async function to improve behavior

This commit is contained in:
scottbommarito
2016-06-23 15:44:05 -07:00
parent 7e5ac6b7f8
commit a37c0b989e
7 changed files with 63 additions and 29 deletions

View File

@@ -64,7 +64,7 @@ function itInternal(func, expectation, isCoreTest, assertion) {
if ((!TestConfig.onlyRunCoreTests || isCoreTest)) {
// Create a wrapper around the assertion to set the timeout on the test to 10 minutes.
var assertionWithTimeout = function (done) {
this.timeout(10 * 60 * 1000);
this.timeout(20 * 60 * 1000);
assertion(done);
};
return it(expectation, assertionWithTimeout);