From bc3123ddd4d357bc572b59d25e47bc20ff2eb27b Mon Sep 17 00:00:00 2001 From: Matthew Jaffee Date: Wed, 14 Dec 2022 09:20:14 -0600 Subject: [PATCH] fix lint (cherry picked from commit 797b8bc31f3af9689204a8c68982df2d65db8fe7) --- dax/storage/storage_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dax/storage/storage_test.go b/dax/storage/storage_test.go index 1bc33e3e6..d7d9f3869 100644 --- a/dax/storage/storage_test.go +++ b/dax/storage/storage_test.go @@ -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