Bump user test enumeration timeout

This commit is contained in:
Wesley Wigham 2018-05-16 12:42:46 -07:00
parent aab8d65107
commit 8ce581149c
No known key found for this signature in database
GPG key ID: D59F87F60C5400C9

View file

@ -27,8 +27,10 @@ abstract class ExternalCompileRunnerBase extends RunnerBase {
// Read in and evaluate the test list
const testList = this.tests && this.tests.length ? this.tests : this.enumerateTestFiles();
describe(`${this.kind()} code samples`, () => {
const cwd = path.join(Harness.IO.getWorkspaceRoot(), this.testDir);
const cls = this;
describe(`${this.kind()} code samples`, function(this: Mocha.ISuiteCallbackContext) {
this.timeout(600_000); // 10 minutes
const cwd = path.join(Harness.IO.getWorkspaceRoot(), cls.testDir);
const placeholderName = ".node_modules";
const moduleDirName = "node_modules";
before(() => {
@ -42,7 +44,7 @@ abstract class ExternalCompileRunnerBase extends RunnerBase {
});
});
for (const test of testList) {
this.runTest(typeof test === "string" ? test : test.file);
cls.runTest(typeof test === "string" ? test : test.file);
}
after(() => {
ts.forEachAncestorDirectory(cwd, dir => {