Skip to content

Commit

Permalink
ucfg: quieter logs in TestValidateRequiredFailing()
Browse files Browse the repository at this point in the history
ucfg: quieter logs in TestValidateNonzeroFailing()
  • Loading branch information
alrs committed Apr 13, 2020
1 parent 58a5451 commit 3305326
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions validator_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -642,11 +642,9 @@ func TestValidateRequiredFailing(t *testing.T) {

t.Logf("Unpack returned error: %v", err)
err = err.(Error).Reason()
logTmpl := "expected:%q got:%q"
if test.err != err {
t.Fatalf(logTmpl, test.err, err)
t.Fatalf("expected:%q got:%q", test.err, err)
}
t.Logf(logTmpl, test.err, err)
})
}
}
Expand Down Expand Up @@ -765,11 +763,9 @@ func TestValidateNonzeroFailing(t *testing.T) {

t.Logf("Unpack returned error: %v", err)
err = err.(Error).Reason()
logTmpl := "expected:%q got:%q"
if test.err != err {
t.Fatalf(logTmpl, test.err, err)
t.Fatalf("expected:%q got:%q", test.err, err)
}
t.Logf(logTmpl, test.err, err)
})
}
}
Expand Down

0 comments on commit 3305326

Please sign in to comment.