TESTING: Fix reversed got/want output in compareconfig_test.go (#3070)

This commit is contained in:
Tom Limoncelli 2024-08-05 16:12:20 -04:00 committed by GitHub
parent 62112d15a6
commit 2944eded30
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -235,7 +235,7 @@ compFn: <nil>
got := strings.TrimSpace(cc.String()) got := strings.TrimSpace(cc.String())
tt.want = strings.TrimSpace(tt.want) tt.want = strings.TrimSpace(tt.want)
if got != tt.want { if got != tt.want {
d := diff.Diff(got, tt.want) d := diff.Diff(tt.want, got)
t.Errorf("NewCompareConfig() = \n%s\n", d) t.Errorf("NewCompareConfig() = \n%s\n", d)
} }
}) })