Skip to content

Commit

Permalink
feat: longer delays
Browse files Browse the repository at this point in the history
  • Loading branch information
whilefoo committed Sep 24, 2023
1 parent 308b6c2 commit 8ba4743
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/e2e-test.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
on: workflow_dispatch
on:
- workflow_dispatch
- push

jobs:
e2e-test:
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
},
Expand Down
4 changes: 2 additions & 2 deletions tests/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
});
});
Expand Down

0 comments on commit 8ba4743

Please sign in to comment.