X-Git-Url: https://ruderich.org/simon/gitweb/?a=blobdiff_plain;f=cmd%2Fsafcm%2Fsync_info_test.go;h=7ad13c9fd01084e6c54c9915cf418b9f9d57e663;hb=3473766d8afb07cb0685694656947883cbbd1138;hp=e01083bb8172b668c95c108fd113232899eff17b;hpb=641203fda8f7da72c74562c9dc910ca108116f11;p=safcm%2Fsafcm.git diff --git a/cmd/safcm/sync_info_test.go b/cmd/safcm/sync_info_test.go index e01083b..7ad13c9 100644 --- a/cmd/safcm/sync_info_test.go +++ b/cmd/safcm/sync_info_test.go @@ -16,12 +16,10 @@ package main import ( - "reflect" "testing" - "github.com/google/go-cmp/cmp" - "ruderich.org/simon/safcm" + "ruderich.org/simon/safcm/testutil" ) func TestHostInfoRespToGroups(t *testing.T) { @@ -70,9 +68,7 @@ func TestHostInfoRespToGroups(t *testing.T) { for _, tc := range tests { t.Run(tc.name, func(t *testing.T) { res := hostInfoRespToGroups(tc.resp) - if !reflect.DeepEqual(tc.exp, res) { - t.Errorf("res: %s", cmp.Diff(tc.exp, res)) - } + testutil.AssertEqual(t, "res", res, tc.exp) }) } }