aboutsummaryrefslogtreecommitdiff
path: root/weed/storage/needle_map_metric_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'weed/storage/needle_map_metric_test.go')
-rw-r--r--weed/storage/needle_map_metric_test.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/weed/storage/needle_map_metric_test.go b/weed/storage/needle_map_metric_test.go
index 362659a11..c04fd6c8b 100644
--- a/weed/storage/needle_map_metric_test.go
+++ b/weed/storage/needle_map_metric_test.go
@@ -1,8 +1,8 @@
package storage
import (
- "io/ioutil"
"math/rand"
+ "os"
"testing"
"github.com/chrislusf/seaweedfs/weed/glog"
@@ -11,7 +11,7 @@ import (
func TestFastLoadingNeedleMapMetrics(t *testing.T) {
- idxFile, _ := ioutil.TempFile("", "tmp.idx")
+ idxFile, _ := os.CreateTemp("", "tmp.idx")
nm := NewCompactNeedleMap(idxFile)
for i := 0; i < 10000; i++ {