From b36fdaea1c5e9a16035377f0c72b41dcab28bd12 Mon Sep 17 00:00:00 2001 From: sundowndev Date: Mon, 22 Mar 2021 12:02:06 +0100 Subject: [PATCH] test: analyser package --- pkg/analyser/analyzer_test.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/pkg/analyser/analyzer_test.go b/pkg/analyser/analyzer_test.go index c62ca0d0..dd07de0e 100644 --- a/pkg/analyser/analyzer_test.go +++ b/pkg/analyser/analyzer_test.go @@ -972,9 +972,8 @@ func TestAnalyze(t *testing.T) { differ, err := diff.NewDiffer(diff.SliceOrdering(true)) if err != nil { - panic(err) + t.Fatalf("Error creating new differ: %e", err) } - assert.NoError(t, err) for _, c := range cases { t.Run(c.name, func(t *testing.T) {