From bb7e5ef68651a01b1421bab29750996a752476b8 Mon Sep 17 00:00:00 2001 From: Deepthi Date: Sat, 20 Jul 2024 07:31:24 +0530 Subject: [PATCH] Fixing failed tests from 454 and 459 merge (#461) Fixing failed tests from #454 and #459 merge --- talismanrc/talismanrc_test.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/talismanrc/talismanrc_test.go b/talismanrc/talismanrc_test.go index fdf7d23..5a89133 100644 --- a/talismanrc/talismanrc_test.go +++ b/talismanrc/talismanrc_test.go @@ -88,10 +88,10 @@ custom_severities: - detector: Base64Content severity: low `) - persistedRC := newPersistedRC(talismanRCContents) + persistedRC, _ := newPersistedRC(talismanRCContents) talismanRC := fromPersistedRC(persistedRC, ScanMode) - assert.Equal(t, newPersistedRC(talismanRCContents).Threshold, severity.High) - assert.Equal(t, len(newPersistedRC(talismanRCContents).CustomSeverities), 1) + assert.Equal(t, persistedRC.Threshold, severity.High) + assert.Equal(t, len(persistedRC.CustomSeverities), 1) assert.Equal(t, persistedRC.CustomSeverities, talismanRC.CustomSeverities) }