mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2024-01-19 02:48:24 +00:00
fix related tests
This commit is contained in:
parent
5668ed798d
commit
09471b46f9
|
@ -68,7 +68,7 @@ func TestCompactMap(t *testing.T) {
|
|||
t.Fatal("key", i, "size", v.Size)
|
||||
}
|
||||
} else if i%37 == 0 {
|
||||
if ok && v.Size > 0 {
|
||||
if ok && v.Size != TombstoneFileSize {
|
||||
t.Fatal("key", i, "should have been deleted needle value", v)
|
||||
}
|
||||
} else if i%2 == 0 {
|
||||
|
@ -81,7 +81,7 @@ func TestCompactMap(t *testing.T) {
|
|||
for i := uint32(10 * batch); i < 100*batch; i++ {
|
||||
v, ok := m.Get(NeedleId(i))
|
||||
if i%37 == 0 {
|
||||
if ok && v.Size > 0 {
|
||||
if ok && v.Size != TombstoneFileSize {
|
||||
t.Fatal("key", i, "should have been deleted needle value", v)
|
||||
}
|
||||
} else if i%2 == 0 {
|
||||
|
|
Loading…
Reference in a new issue