From e4d92e0bf635c393c8ab090e5df3bcdad3b2603b Mon Sep 17 00:00:00 2001 From: Deepthi Date: Fri, 19 Jul 2024 22:21:25 +0530 Subject: [PATCH] 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) }