Explorar el Código

ci: fixed smoke tests by increasing timeout

Max Schmitt hace 5 años
padre
commit
0a5bf64304
Se han modificado 1 ficheros con 4 adiciones y 2 borrados
  1. 4 2
      ci/core.test.ts

+ 4 - 2
ci/core.test.ts

@@ -10,13 +10,15 @@ type BrowserType = "chromium" | "firefox" | "webkit"
 
 const browserType: BrowserType = process.env.BROWSER as BrowserType || "chromium"
 
-before(async () => {
+before(async function () {
+    this.timeout(5 * 1000);
     console.log(`Starting browser: ${browserType}`)
     browser = await playwright[browserType].launch({
         headless: process.argv.includes('--headless'),
     });
 });
-after(async () => {
+after(async function () {
+    this.timeout(5 * 1000);
     await browser.close();
 });
 beforeEach(async function () {