mirror of https://github.com/stretchr/testify.git
Fix vet warnings and go generate to update docs
parent
3104bf5483
commit
c33f336b92
|
@ -690,7 +690,7 @@ func TestNoError(t *testing.T) {
|
|||
}()
|
||||
|
||||
if err == nil { // err is not nil here!
|
||||
t.Error("Error should be nil due to empty interface", err)
|
||||
t.Errorf("Error should be nil due to empty interface: %s", err)
|
||||
}
|
||||
|
||||
False(t, NoError(mockT, err), "NoError should fail with empty error interface")
|
||||
|
@ -724,7 +724,7 @@ func TestError(t *testing.T) {
|
|||
}()
|
||||
|
||||
if err == nil { // err is not nil here!
|
||||
t.Error("Error should be nil due to empty interface", err)
|
||||
t.Errorf("Error should be nil due to empty interface: %s", err)
|
||||
}
|
||||
|
||||
True(t, Error(mockT, err), "Error should pass with empty error interface")
|
||||
|
|
Loading…
Reference in New Issue