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

Commit 30b1cac

Browse files
committed
Try to reduce flaky tests
1 parent 2128e54 commit 30b1cac

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

tests/integration/helpers.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,9 @@ async function scan(name, scanType, parameters = [], timeout = 180) {
124124

125125
if (status && status.state === "Done") {
126126
await deleteScan(actualName);
127+
// Wait a couple seconds to give kubernetes more time to update the fields
128+
await sleep(2000);
129+
const { status } = await getScan(actualName);
127130
return status.findings;
128131
} else if (status && status.state === "Errored") {
129132
console.error("Scan Errored");

0 commit comments

Comments
 (0)