mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-08-17 12:57:42 +08:00
FIX: Async test runner check-timeout bumped. (#4751)
This commit is contained in:

committed by
GitHub

parent
3a16e72ebf
commit
ab42715089
@ -119,7 +119,7 @@ function runAsync(testInfo: TestInfoEntry, recursiveIndex: number, testTimeout?:
|
|||||||
runTests(testsQueue, recursiveIndex + 1);
|
runTests(testsQueue, recursiveIndex + 1);
|
||||||
} else if (error) {
|
} else if (error) {
|
||||||
write(`--- ["${testInfo.testName}"] FAILED: ${error.message}, duration: ${duration}`, trace.messageType.error);
|
write(`--- ["${testInfo.testName}"] FAILED: ${error.message}, duration: ${duration}`, trace.messageType.error);
|
||||||
testInfo.errorMessage = error.message;
|
testInfo.errorMessage = error.message;
|
||||||
runTests(testsQueue, recursiveIndex + 1);
|
runTests(testsQueue, recursiveIndex + 1);
|
||||||
} else {
|
} else {
|
||||||
const testEndTime = time();
|
const testEndTime = time();
|
||||||
@ -128,7 +128,7 @@ function runAsync(testInfo: TestInfoEntry, recursiveIndex: number, testTimeout?:
|
|||||||
testInfo.errorMessage = "Test timeout.";
|
testInfo.errorMessage = "Test timeout.";
|
||||||
runTests(testsQueue, recursiveIndex + 1);
|
runTests(testsQueue, recursiveIndex + 1);
|
||||||
} else {
|
} else {
|
||||||
setTimeout(checkFinished, 0);
|
setTimeout(checkFinished, 20);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -144,7 +144,7 @@ function runAsync(testInfo: TestInfoEntry, recursiveIndex: number, testTimeout?:
|
|||||||
doneCallback(e);
|
doneCallback(e);
|
||||||
}
|
}
|
||||||
|
|
||||||
setTimeout(checkFinished, 0);
|
setTimeout(checkFinished, 20);
|
||||||
}
|
}
|
||||||
|
|
||||||
export function runTests(tests: Array<TestInfoEntry>, recursiveIndex) {
|
export function runTests(tests: Array<TestInfoEntry>, recursiveIndex) {
|
||||||
|
Reference in New Issue
Block a user