Skip to content

Commit 390d8af

Browse files
Update PredicateTest.test.ts
1 parent cf12f59 commit 390d8af

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

‎src/tests/PredicateTest.test.ts‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,8 +72,9 @@ describe("Triage cases", () => {
7272
const scanType = "sca";
7373
const state = "To_verify";
7474
const comment = "comment1";
75-
await handleTriageSCAShow(projectId, vulnerabilities, scanType);
75+
// Update first: the show endpoint returns 404 until a triage record exists for the finding
7676
await handleTriageSCAUpdate(projectId, vulnerabilities, scanType, state, comment);
77+
await handleTriageSCAShow(projectId, vulnerabilities, scanType);
7778
});
7879

7980
it('SCA Triage Show and Update Failure case', async () => {

0 commit comments

Comments
 (0)