chore(test): fix lint and refactor test (#20213)

This commit is contained in:
Hoa Nguyen
2024-04-30 11:56:09 +00:00
committed by GitHub
parent 8a36d9d3d0
commit 128bb968b2
6 changed files with 17 additions and 17 deletions
+1 -2
View File
@@ -346,8 +346,7 @@ func TestStore_Save(t *testing.T) {
assert.Equal(t, []uint64{7, 7}, gotErrHeights)
}
type ReadCloserMock struct {
}
type ReadCloserMock struct{}
func (r ReadCloserMock) Read(p []byte) (n int, err error) {
return len(p), io.EOF