revid: not wrapping t.Errorf

This commit is contained in:
saxon 2019-02-16 16:43:15 +10:30
parent bb091f5961
commit 3356457c71
1 changed files with 3 additions and 7 deletions

View File

@ -101,17 +101,17 @@ func TestSegment(t *testing.T) {
next, err := rb.Next(rTimeout) next, err := rb.Next(rTimeout)
if err != nil { if err != nil {
unexpectErr(err, t) t.Errorf("Unexpected err: %v\n", err)
} }
err = loadSender.load(next) err = loadSender.load(next)
if err != nil { if err != nil {
unexpectErr(err, t) t.Errorf("Unexpected err: %v\n", err)
} }
err = loadSender.send() err = loadSender.send()
if err != nil { if err != nil {
unexpectErr(err, t) t.Errorf("Unexpected err: %v\n", err)
} }
} }
@ -134,10 +134,6 @@ func TestSegment(t *testing.T) {
} }
} }
func unexpectErr(err error, t *testing.T) {
t.Errorf("Unexpected err: %v\n", err)
}
func TestDiscontinuity(t *testing.T) { func TestDiscontinuity(t *testing.T) {
} }