commands: t.Error => t.Errorf

This commit is contained in:
Bjørn Erik Pedersen 2017-03-11 19:07:32 +01:00
parent f039e3be9e
commit 5f443bd45b

View file

@ -52,7 +52,7 @@ func TestUndraftContent(t *testing.T) {
res, err := undraftContent(p)
if test.expectedErr != "" {
if err == nil {
t.Error("[%d] Expected error, got none", i)
t.Errorf("[%d] Expected error, got none", i)
continue
}
if err.Error() != test.expectedErr {