fix test.

This commit is contained in:
Ahrav Dutta
2023-03-26 10:47:46 -07:00
parent b58f6d414f
commit f4ddc7f59d
+1 -3
View File
@@ -7,8 +7,6 @@ import (
"testing"
"github.com/google/go-cmp/cmp"
logContext "github.com/trufflesecurity/trufflehog/v3/pkg/context"
)
func TestCache(t *testing.T) {
@@ -66,7 +64,7 @@ func TestCache(t *testing.T) {
}
func TestCache_NewWithData(t *testing.T) {
c := NewWithData(logContext.Background(), []string{"key1", "key2", "key3"})
c := NewWithData([]string{"key1", "key2", "key3"})
// Test the count.
if c.Count() != 3 {