test: read local blocks through store interface

This commit is contained in:
pingqiu committed 2026-11-20 03:40:12 -08:00
1 parent 0bccd0d686
commit 80e40c6cc0
1 file changed
+2 -2
@@ -22,8 +22,8 @@ func TestPrecopyDetachConvergesBeforeStoppingIO(t *testing.T) {
got := f.imageOf(t, r.Head)
want := make([]byte, len(got))
for i := uint32(0); i < ctNumBlocks; i++ {
b := make([]byte, ctBlockSize)
if _, err := s.Read(i, b); err != nil { t.Fatal(err) }
b, err := s.Read(i)
if err != nil { t.Fatal(err) }
copy(want[int(i)*ctBlockSize:], b)
}
if !bytes.Equal(got, want) { t.Fatal("detached HEAD differs from local image") }