mirror of
https://github.com/stretchr/testify.git
synced 2025-05-30 03:02:22 +00:00
Update assertions.go
Fixed incorrect order of parameters to Equal
This commit is contained in:
parent
089c7181b8
commit
6b09f60392
@ -842,7 +842,7 @@ func EqualError(t TestingT, theError error, errString string, msgAndArgs ...inte
|
||||
return false
|
||||
}
|
||||
s := "An error with value \"%s\" is expected but got \"%s\". %s"
|
||||
return Equal(t, theError.Error(), errString,
|
||||
return Equal(t, errString, theError.Error(),
|
||||
s, errString, theError.Error(), message)
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user