mirror of https://bitbucket.org/ausocean/av.git
revid: not wrapping t.Errorf
This commit is contained in:
parent
bb091f5961
commit
3356457c71
|
@ -101,17 +101,17 @@ func TestSegment(t *testing.T) {
|
|||
|
||||
next, err := rb.Next(rTimeout)
|
||||
if err != nil {
|
||||
unexpectErr(err, t)
|
||||
t.Errorf("Unexpected err: %v\n", err)
|
||||
}
|
||||
|
||||
err = loadSender.load(next)
|
||||
if err != nil {
|
||||
unexpectErr(err, t)
|
||||
t.Errorf("Unexpected err: %v\n", err)
|
||||
}
|
||||
|
||||
err = loadSender.send()
|
||||
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) {
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue