mirror of
https://github.com/zhigang1992/react-native-code-push.git
synced 2026-06-09 20:25:15 +08:00
reset timeouts
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(20 * 60 * 1000);
|
||||
this.timeout(10 * 60 * 1000);
|
||||
assertion(done);
|
||||
};
|
||||
return it(expectation, assertionWithTimeout);
|
||||
|
||||
@@ -48,7 +48,7 @@ var TestUtil = (function () {
|
||||
if (options.maxBuffer === undefined)
|
||||
options.maxBuffer = 1024 * 500;
|
||||
if (options.timeout === undefined)
|
||||
options.timeout = 20 * 60 * 1000;
|
||||
options.timeout = 10 * 60 * 1000;
|
||||
if (!options.noLogCommand)
|
||||
console.log("Running command: " + command);
|
||||
var execProcess = child_process.exec(command, options, function (error, stdout, stderr) {
|
||||
|
||||
Reference in New Issue
Block a user