From 6f70a7237b77ad75a3adcf2dd30bbf75376451a5 Mon Sep 17 00:00:00 2001 From: Julien Dessaux Date: Wed, 22 Sep 2021 23:42:16 +0200 Subject: Fixed test order mistake between expected value and got value --- pkg/field/error_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'pkg/field/error_test.go') diff --git a/pkg/field/error_test.go b/pkg/field/error_test.go index 45e8f83..e87083e 100644 --- a/pkg/field/error_test.go +++ b/pkg/field/error_test.go @@ -8,7 +8,7 @@ import ( ) func requireErrorTypeMatch(t *testing.T, err error, expected error) { - require.Equalf(t, reflect.TypeOf(err), reflect.TypeOf(expected), "Invalid error type. Got %s but expected %s", reflect.TypeOf(err), reflect.TypeOf(expected)) + require.Equalf(t, reflect.TypeOf(expected), reflect.TypeOf(err), "Invalid error type. Got %s but expected %s", reflect.TypeOf(err), reflect.TypeOf(expected)) } func TestErrorsCoverage(t *testing.T) { -- cgit v1.2.3