(cherry picked from commit 797b8bc31f)
This commit is contained in:
Matthew Jaffee 2022-12-14 09:20:14 -06:00 committed by Joe Friedrich
parent 6cef68a853
commit bc3123ddd4

View file

@ -84,7 +84,7 @@ func TestManagerManager(t *testing.T) {
wld, err = mgr2.LoadWriteLog()
assert.NoError(t, err)
buf := make([]byte, 16)
n, err = wld.Read(buf)
n, _ = wld.Read(buf)
assert.Equal(t, 9, n)
assert.Equal(t, "blahblah\n", string(buf[:9]))
n, err = wld.Read(buf)
@ -122,7 +122,7 @@ func TestManagerManager(t *testing.T) {
// loading write log should fail since there's been a snapshot
// between the last load and locking.
wld, err = mgr2.LoadWriteLog()
_, err = mgr2.LoadWriteLog()
assert.NotNil(t, err)
// mgr2 dies due to error loading write lock