From 5516a376a230ae98bd308e3b5ccbaafd8d6f4ab1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9=20=27Necoro=27=20Neumann?= Date: Sun, 21 Feb 2021 16:52:01 +0100 Subject: Fix order for `Cmp.Diff` --- pkg/config/yaml_test.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'pkg') diff --git a/pkg/config/yaml_test.go b/pkg/config/yaml_test.go index 09f721d..c8d6071 100644 --- a/pkg/config/yaml_test.go +++ b/pkg/config/yaml_test.go @@ -45,7 +45,7 @@ func TestBuildOptions(tst *testing.T) { tst.Run(tt.name, func(tst *testing.T) { out, unk := buildOptions(&tt.opts, tt.inp) - if diff := cmp.Diff(out, tt.out); diff != "" { + if diff := cmp.Diff(tt.out, out); diff != "" { tst.Error(diff) } @@ -197,7 +197,7 @@ func TestBuildFeeds(tst *testing.T) { tst.Errorf("buildFeeds() error = %v, wantErr %v", err, tt.wantErr) return } - if diff := cmp.Diff(feeds, tt.result); !tt.wantErr && diff != "" { + if diff := cmp.Diff(tt.result, feeds); !tt.wantErr && diff != "" { tst.Error(diff) } }) @@ -373,7 +373,7 @@ feeds: } if err == nil { - if diff := cmp.Diff(got, tt.config, eqNode); diff != "" { + if diff := cmp.Diff(tt.config, got, eqNode); diff != "" { tst.Error(diff) } } -- cgit v1.2.3