X-Git-Url: https://ruderich.org/simon/gitweb/?a=blobdiff_plain;f=cmd%2Fsafcm-remote%2Fsync%2Ftriggers_test.go;h=9775ed546590f26cef5b322f7c04e9fc6276a8d4;hb=006a69a50239a27ba7929c513897ef19259e06af;hp=cc418862c8f872c10be0943f312e4d28a1c14fd8;hpb=992eaae7fec45c2d58fff89d1bc0ae920a899296;p=safcm%2Fsafcm.git diff --git a/cmd/safcm-remote/sync/triggers_test.go b/cmd/safcm-remote/sync/triggers_test.go index cc41886..9775ed5 100644 --- a/cmd/safcm-remote/sync/triggers_test.go +++ b/cmd/safcm-remote/sync/triggers_test.go @@ -16,10 +16,9 @@ package sync import ( - "reflect" "testing" - "github.com/google/go-cmp/cmp" + "ruderich.org/simon/safcm/testutil" ) func TestTriggerPaths(t *testing.T) { @@ -56,11 +55,8 @@ func TestTriggerPaths(t *testing.T) { for _, tc := range tests { t.Run(tc.name, func(t *testing.T) { - res := triggerPaths(tc.path) - if !reflect.DeepEqual(tc.exp, res) { - t.Errorf("res: %s", - cmp.Diff(tc.exp, res)) - } + res := triggerPaths(tc.path) + testutil.AssertEqual(t, "res", res, tc.exp) }) } }