mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2026-12-06 19:17:28 +01:00
test: read local blocks through store interface
This commit is contained in:
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") }
|
||||
|
||||
Reference in new issue
Block a user