mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2026-10-25 14:30:43 +01:00
fix tests
This commit is contained in:
1 parent
0cf4f2e891
commit
c589e9837c
1 file changed
+1
-1
@@ -16,7 +16,7 @@ func TestFastLoadingNeedleMapMetrics(t *testing.T) {
|
||||
|
||||
for i := 0; i < 10000; i++ {
|
||||
nm.Put(Uint64ToNeedleId(uint64(i+1)), Uint32ToOffset(uint32(0)), Size(1))
|
||||
if rand.Float32() < 0.2 {
|
||||
if rand.Float32() < 0.2 && i > 0 {
|
||||
nm.Delete(Uint64ToNeedleId(uint64(rand.Int63n(int64(i))+1)), Uint32ToOffset(uint32(0)))
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user