From 401ccf1509aeb3f160f75acb1f85d2959e0903df Mon Sep 17 00:00:00 2001 From: Chris Lu Date: Thu, 10 Sep 2020 15:13:23 -0700 Subject: [PATCH] fix test --- weed/storage/needle_map_metric_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/weed/storage/needle_map_metric_test.go b/weed/storage/needle_map_metric_test.go index 362659a11..0c792869f 100644 --- a/weed/storage/needle_map_metric_test.go +++ b/weed/storage/needle_map_metric_test.go @@ -17,7 +17,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 { - nm.Delete(Uint64ToNeedleId(uint64(rand.Int63n(int64(i))+1)), Uint32ToOffset(uint32(0))) + nm.Delete(Uint64ToNeedleId(uint64(rand.Int63n(int64(i))+1))) } }