Fixed test order mistake between expected value and got value
This commit is contained in:
parent
ea72b9dbb2
commit
6f70a7237b
5 changed files with 30 additions and 39 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue