From c73fec747111fe268dce3ee12d2db64b770d897a Mon Sep 17 00:00:00 2001 From: Coff0xc <184964491+Coff0xc@users.noreply.github.com> Date: Tue, 17 Nov 2026 19:12:51 +0000 Subject: [PATCH] fix(db): look up caution lessons by cue The caution action carries the vulnclass, not the finding summary. --- db/lessons_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/db/lessons_test.go b/db/lessons_test.go index 2af9a7f..09d0387 100644 --- a/db/lessons_test.go +++ b/db/lessons_test.go @@ -698,7 +698,7 @@ func TestExtractLessonsRetractsAllRetests(t *testing.T) { if _, err := d.ExtractLessonsForTask(t.Context(), task.ID); err != nil { t.Fatal(err) } - caution := findLessonByAction(t, d, task.ID, "caution", "Recheck", label) + caution := findLessonByAction(t, d, task.ID, "caution", "Recheck", cue) t.Cleanup(func() { cleanupExec(t, d, `DELETE FROM rsi_lessons WHERE id=$1`, caution.ID) }) if positiveRetestEvidence(t, d, r1) != 1 { t.Fatal("older reproduced retest lost its evidence after a later fixed retest")