mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2024-01-19 02:48:24 +00:00
adjust tests
This commit is contained in:
parent
93bcf56514
commit
c95d3d9dff
|
@ -66,9 +66,9 @@ func TestReaderAt(t *testing.T) {
|
||||||
chunkCache: &mockChunkCache{},
|
chunkCache: &mockChunkCache{},
|
||||||
}
|
}
|
||||||
|
|
||||||
testReadAt(t, readerAt, 0, 10, 10, nil)
|
testReadAt(t, readerAt, 0, 10, 10, io.EOF)
|
||||||
testReadAt(t, readerAt, 0, 12, 10, io.EOF)
|
testReadAt(t, readerAt, 0, 12, 10, io.EOF)
|
||||||
testReadAt(t, readerAt, 2, 8, 8, nil)
|
testReadAt(t, readerAt, 2, 8, 8, io.EOF)
|
||||||
testReadAt(t, readerAt, 3, 6, 6, nil)
|
testReadAt(t, readerAt, 3, 6, 6, nil)
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -116,7 +116,7 @@ func TestReaderAt0(t *testing.T) {
|
||||||
chunkCache: &mockChunkCache{},
|
chunkCache: &mockChunkCache{},
|
||||||
}
|
}
|
||||||
|
|
||||||
testReadAt(t, readerAt, 0, 10, 10, nil)
|
testReadAt(t, readerAt, 0, 10, 10, io.EOF)
|
||||||
testReadAt(t, readerAt, 3, 16, 7, io.EOF)
|
testReadAt(t, readerAt, 3, 16, 7, io.EOF)
|
||||||
testReadAt(t, readerAt, 3, 5, 5, nil)
|
testReadAt(t, readerAt, 3, 5, 5, nil)
|
||||||
|
|
||||||
|
@ -144,7 +144,7 @@ func TestReaderAt1(t *testing.T) {
|
||||||
chunkCache: &mockChunkCache{},
|
chunkCache: &mockChunkCache{},
|
||||||
}
|
}
|
||||||
|
|
||||||
testReadAt(t, readerAt, 0, 20, 20, nil)
|
testReadAt(t, readerAt, 0, 20, 20, io.EOF)
|
||||||
testReadAt(t, readerAt, 1, 7, 7, nil)
|
testReadAt(t, readerAt, 1, 7, 7, nil)
|
||||||
testReadAt(t, readerAt, 0, 1, 1, nil)
|
testReadAt(t, readerAt, 0, 1, 1, nil)
|
||||||
testReadAt(t, readerAt, 18, 4, 2, io.EOF)
|
testReadAt(t, readerAt, 18, 4, 2, io.EOF)
|
||||||
|
|
Loading…
Reference in a new issue