diff options
| author | chrislu <chris.lu@gmail.com> | 2023-03-14 22:05:16 -0700 |
|---|---|---|
| committer | chrislu <chris.lu@gmail.com> | 2023-03-14 22:05:16 -0700 |
| commit | f5854d13df2a46296c857005bb51e163fc20d4af (patch) | |
| tree | 851d3aebf52d4701142977541e76e624b74a9704 | |
| parent | 0454bb2d88add5a6ff0d9189cdba368a2a6ae13c (diff) | |
| download | seaweedfs-f5854d13df2a46296c857005bb51e163fc20d4af.tar.xz seaweedfs-f5854d13df2a46296c857005bb51e163fc20d4af.zip | |
fix test
| -rw-r--r-- | weed/storage/volume_read_test.go | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/weed/storage/volume_read_test.go b/weed/storage/volume_read_test.go index 7e0bcb359..8bbd0058b 100644 --- a/weed/storage/volume_read_test.go +++ b/weed/storage/volume_read_test.go @@ -88,7 +88,9 @@ func TestReadNeedMetaWithDeletesThenWrites(t *testing.T) { testNeedle.Flags = 0x08 v.readNeedleMetaAt(testNeedle, writeInfos[i].offset, writeInfos[i].size) actualLastModifiedTime := testNeedle.LastModified - assert.Equal(t, expectedLastUpdateTime, actualLastModifiedTime, "The two words should be the same.") + if writeInfos[i].size != 0 { + assert.Equal(t, expectedLastUpdateTime, actualLastModifiedTime, "The two words should be the same.") + } expectedLastUpdateTime += 2000 } } |
