appease linter

This commit is contained in:
vyzo 2020-08-25 14:03:49 +03:00
parent 58cfac9f67
commit 6b3282150b

View File

@ -440,7 +440,10 @@ func TestLoadLocal(t *testing.T) {
}
msgs[cid] = struct{}{}
}
mp.Close()
err = mp.Close()
if err != nil {
t.Fatal(err)
}
mp, err = New(tma, ds, "mptest")
if err != nil {
@ -629,7 +632,11 @@ func TestUpdates(t *testing.T) {
}
}
mp.Close()
err = mp.Close()
if err != nil {
t.Fatal(err)
}
_, ok := <-ch
if ok {
t.Fatal("expected closed channel, but got an update instead")