Skip to content

Commit 23739a2

Browse files
fix(issue-417): adding additional asserts to track flaky error (#421)
* refactor: adding additional asserts to track flaky error * refactor: remove .only from test * refactor: fix lint * refactor: update assert.fail msg Co-authored-by: Averi Kitsch <[email protected]>
1 parent 4172a73 commit 23739a2

File tree

1 file changed

+13
-4
lines changed

1 file changed

+13
-4
lines changed

container-analysis/snippets/test/containerAnalysis.test.js

+13-4
Original file line numberDiff line numberDiff line change
@@ -405,10 +405,19 @@ describe('pubsub', () => {
405405
this.retries(3);
406406
await delay(this.test);
407407

408-
await client
409-
.getGrafeasClient()
410-
.deleteNote({name: `${formattedNoteName}-pubsub`});
411-
await pubsub.subscription(subscriptionId).delete();
408+
try {
409+
await client
410+
.getGrafeasClient()
411+
.deleteNote({name: `${formattedNoteName}-pubsub`});
412+
} catch (err) {
413+
assert.fail(err);
414+
}
415+
416+
try {
417+
await pubsub.subscription(subscriptionId).delete();
418+
} catch (err) {
419+
assert.fail(err);
420+
}
412421
});
413422
});
414423
});

0 commit comments

Comments
 (0)