Skip to content
This repository was archived by the owner on Oct 14, 2020. It is now read-only.

Commit b43a322

Browse files
committed
[#22] Add Timeout
I added a timeout to ensure that the logs of the http-webhook service have already been created
1 parent e635bae commit b43a322

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

tests/integration/generic/read-only-hook.test.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,15 @@ test(
55
"should trigger a webhook",
66
async () => {
77
await scan(
8-
"ro-hook-test",
8+
"test-scan-read-only-hook",
99
"test-scan",
1010
[],
1111
90
1212
);
1313

14+
// This is necessary to ensure that the HTTP-Server already logged the Request
15+
await new Promise(resolve => setTimeout(resolve, 5000));
16+
1417
const webhook = "http-webhook";
1518
const namespace = "integration-tests";
1619

0 commit comments

Comments
 (0)