From 8ba4743f722e5469bb2d42d72a2a81fe978f4179 Mon Sep 17 00:00:00 2001 From: whilefoo Date: Sun, 24 Sep 2023 16:24:11 +0200 Subject: [PATCH] feat: longer delays --- .github/workflows/e2e-test.yml | 4 +++- package.json | 2 +- tests/utils.ts | 4 ++-- 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/.github/workflows/e2e-test.yml b/.github/workflows/e2e-test.yml index bc374b8a8..6db79b352 100644 --- a/.github/workflows/e2e-test.yml +++ b/.github/workflows/e2e-test.yml @@ -1,4 +1,6 @@ -on: workflow_dispatch +on: + - workflow_dispatch + - push jobs: e2e-test: diff --git a/package.json b/package.json index 696c24f63..30c952916 100644 --- a/package.json +++ b/package.json @@ -21,7 +21,7 @@ "lint": "eslint --ext .ts ./src", "start:serverless": "tsx src/adapters/github/github-actions.ts", "start:watch": "nodemon --exec 'yarn start'", - "start": "probot run ./lib/index.js", + "start": "probot run ./lib/src/index.js", "prepare": "husky install", "test:e2e": "jest" }, diff --git a/tests/utils.ts b/tests/utils.ts index 79d9ad028..37497e2bf 100644 --- a/tests/utils.ts +++ b/tests/utils.ts @@ -11,13 +11,13 @@ export function waitForNWebhooks(n = 1) { const timer = setTimeout(() => { reject(new Error(`timeout, received ${i} webhooks, expected ${n}`)); - }, 10000); + }, 30000); webhookEventEmitter.on("event", () => { i += 1; if (i == n) { clearTimeout(timer); - setTimeout(resolve, 500); + setTimeout(resolve, 1000); } }); });