mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2025-10-22 03:47:38 +08:00
fix tests
This commit is contained in:
@@ -129,8 +129,8 @@ func TestOverflow(t *testing.T) {
|
|||||||
|
|
||||||
cs.deleteOverflowEntry(4)
|
cs.deleteOverflowEntry(4)
|
||||||
|
|
||||||
if len(cs.overflow) != 4 {
|
if len(cs.overflow) != 5 {
|
||||||
t.Fatalf("expecting 4 entries now: %+v", cs.overflow)
|
t.Fatalf("expecting 5 entries now: %+v", cs.overflow)
|
||||||
}
|
}
|
||||||
|
|
||||||
_, x, _ := cs.findOverflowEntry(5)
|
_, x, _ := cs.findOverflowEntry(5)
|
||||||
@@ -146,7 +146,7 @@ func TestOverflow(t *testing.T) {
|
|||||||
cs.deleteOverflowEntry(1)
|
cs.deleteOverflowEntry(1)
|
||||||
|
|
||||||
for i, x := range cs.overflow {
|
for i, x := range cs.overflow {
|
||||||
println("overflow[", i, "]:", x.Key)
|
println("overflow[", i, "]:", x.Key, "size", x.Size)
|
||||||
}
|
}
|
||||||
println()
|
println()
|
||||||
|
|
||||||
|
@@ -113,7 +113,7 @@ func TestCompaction(t *testing.T) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
n := newEmptyNeedle(uint64(i))
|
n := newEmptyNeedle(uint64(i))
|
||||||
size, err := v.readNeedle(n)
|
size, err := v.readNeedle(n, nil)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
t.Fatalf("read file %d: %v", i, err)
|
t.Fatalf("read file %d: %v", i, err)
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user