diff --git a/source/memory_test.go b/source/memory_test.go index 737e0386..bfd55752 100644 --- a/source/memory_test.go +++ b/source/memory_test.go @@ -16,7 +16,6 @@ package source import ( "encoding/json" - "fmt" "reflect" "testing" @@ -25,10 +24,10 @@ import ( intoto "github.com/testifysec/go-witness/intoto" ) -func TestLoadFile(t *testing.T) { +func TestLoadEnvelope(t *testing.T) { predicate, err := json.Marshal(attestation.Collection{}) if err != nil { - fmt.Errorf("failed to marshal predicate, err = %v", err) + t.Fatalf("failed to marshal predicate, err = %v", err) } tests := []struct { name string @@ -158,4 +157,4 @@ func TestLoadFile(t *testing.T) { }) } -} +} \ No newline at end of file