typo in timeout tests + adding tests for standarderror

This commit is contained in:
Julien Neuhart
2019-07-08 17:50:31 +02:00
parent 9af00d6d58
commit 9c6f23d7cc
5 changed files with 77 additions and 4 deletions

View File

@@ -45,7 +45,7 @@ func AssertConcurrent(t *testing.T, fn func() error, amount int) {
// If so, returns the instance of standarderror.Error.
func RequireStandardError(t *testing.T, err error) *standarderror.Error {
standardized, ok := err.(*standarderror.Error)
require.Equal(t, ok, true)
require.Equal(t, true, ok)
return standardized
}