diff --git a/weed/storage/volume_read_test.go b/weed/storage/volume_read_test.go index 02c514083..7e0bcb359 100644 --- a/weed/storage/volume_read_test.go +++ b/weed/storage/volume_read_test.go @@ -41,7 +41,9 @@ func TestReadNeedMetaWithWritesAndUpdates(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 } }