mirror of
https://github.com/zhigang1992/react-native-code-push.git
synced 2026-06-10 23:59:42 +08:00
use promises and an async function to improve behavior
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user