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

Commit 77d0244

Browse files
committed
Get scan before deleting it
1 parent ead9eb7 commit 77d0244

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/integration/helpers.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,10 +122,10 @@ async function scan(name, scanType, parameters = [], timeout = 180) {
122122
const { status } = await getScan(actualName);
123123

124124
if (status && status.state === "Done") {
125-
await deleteScan(actualName);
126125
// Wait a couple seconds to give kubernetes more time to update the fields
127126
await sleep(2);
128127
const { status } = await getScan(actualName);
128+
await deleteScan(actualName);
129129
return status.findings;
130130
} else if (status && status.state === "Errored") {
131131
console.error("Scan Errored");

0 commit comments

Comments
 (0)