diff options
| author | chrislu <chris.lu@gmail.com> | 2024-11-05 08:52:07 -0800 |
|---|---|---|
| committer | chrislu <chris.lu@gmail.com> | 2024-11-05 08:52:07 -0800 |
| commit | 706d1a8e22b962f976c0fc2f60966cebbe586b12 (patch) | |
| tree | b96ee354f24bcb5389c65a5361a544e8832f36f5 | |
| parent | 90acfd939405b8eefcc10f9c4043ea489eba207f (diff) | |
| download | seaweedfs-706d1a8e22b962f976c0fc2f60966cebbe586b12.tar.xz seaweedfs-706d1a8e22b962f976c0fc2f60966cebbe586b12.zip | |
fix tests
| -rw-r--r-- | weed/filer/reader_at_test.go | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/weed/filer/reader_at_test.go b/weed/filer/reader_at_test.go index 0d95d1aad..6d985a397 100644 --- a/weed/filer/reader_at_test.go +++ b/weed/filer/reader_at_test.go @@ -31,7 +31,7 @@ func (m *mockChunkCache) ReadChunkAt(data []byte, fileId string, offset uint64) func (m *mockChunkCache) SetChunk(fileId string, data []byte) { } -func (m *mockChunkCache) GetMaxFilePartSizeInCache() (uint64) { +func (m *mockChunkCache) GetMaxFilePartSizeInCache() uint64 { return 0 } @@ -81,7 +81,7 @@ func TestReaderAt(t *testing.T) { } testReadAt(t, readerAt, 0, 10, 10, io.EOF, nil, nil) - testReadAt(t, readerAt, 0, 12, 12, io.EOF, nil, nil) + testReadAt(t, readerAt, 0, 12, 10, io.EOF, nil, nil) testReadAt(t, readerAt, 2, 8, 8, io.EOF, nil, nil) testReadAt(t, readerAt, 3, 6, 6, nil, nil, nil) @@ -131,8 +131,8 @@ func TestReaderAt0(t *testing.T) { testReadAt(t, readerAt, 3, 16, 7, io.EOF, nil, nil) testReadAt(t, readerAt, 3, 5, 5, nil, nil, nil) - testReadAt(t, readerAt, 11, 5, 5, io.EOF, nil, nil) - testReadAt(t, readerAt, 10, 5, 5, io.EOF, nil, nil) + testReadAt(t, readerAt, 11, 5, 0, io.EOF, nil, nil) + testReadAt(t, readerAt, 10, 5, 0, io.EOF, nil, nil) } |
