fix: Increase generator test timeout (#6776)

This commit is contained in:
Maribeth Bottorff
2023-01-17 08:17:46 -08:00
committed by GitHub
parent 65834a0f01
commit 59c7cb941b
2 changed files with 5 additions and 1 deletions

View File

@@ -299,7 +299,7 @@ async function generators() {
rimraf.sync(OUTPUT_DIR);
fs.mkdirSync(OUTPUT_DIR);
await runGeneratorsInBrowser(OUTPUT_DIR).catch(() => {});
await runGeneratorsInBrowser(OUTPUT_DIR);
const generatorSuffixes = ['js', 'py', 'dart', 'lua', 'php'];
let failed = 0;

View File

@@ -66,6 +66,10 @@ async function runGeneratorsInBrowser(outputDir) {
console.log('Starting webdriverio...');
const browser = await webdriverio.remote(options);
// Increase the script timeouts to 2 minutes to allow the generators to finish.
await browser.setTimeout({ 'script': 120000 })
console.log('Loading url: ' + url);
await browser.url(url);