diff options
| author | Chris Lu <chris.lu@gmail.com> | 2020-09-10 15:13:23 -0700 |
|---|---|---|
| committer | Chris Lu <chris.lu@gmail.com> | 2020-09-10 15:13:23 -0700 |
| commit | 401ccf1509aeb3f160f75acb1f85d2959e0903df (patch) | |
| tree | be193c583d428650908ca5ccdd385d0a8af5f706 | |
| parent | c9ab8d05fa9b425352ce978b5c5b5b0d71d787ad (diff) | |
| download | seaweedfs-401ccf1509aeb3f160f75acb1f85d2959e0903df.tar.xz seaweedfs-401ccf1509aeb3f160f75acb1f85d2959e0903df.zip | |
fix test
| -rw-r--r-- | weed/storage/needle_map_metric_test.go | 2 |
1 files changed, 1 insertions, 1 deletions
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))) } } |
