Fix deprecation

Signed-off-by: beorn7 <beorn@grafana.com>
This commit is contained in:
beorn7 2022-05-04 13:43:23 +02:00
parent 3bc711e333
commit 654c07783c
1 changed files with 1 additions and 3 deletions

View File

@ -16,7 +16,6 @@ package tsdb
import ( import (
"context" "context"
"fmt" "fmt"
"io/ioutil"
"math" "math"
"math/rand" "math/rand"
"os" "os"
@ -1673,8 +1672,7 @@ func generateCustomHistograms(numHists, numBuckets, numSpans, gapBetweenSpans, s
} }
func TestSparseHistogramCompactionAndQuery(t *testing.T) { func TestSparseHistogramCompactionAndQuery(t *testing.T) {
dir, err := ioutil.TempDir("", "test") dir := t.TempDir()
require.NoError(t, err)
t.Cleanup(func() { t.Cleanup(func() {
require.NoError(t, os.RemoveAll(dir)) require.NoError(t, os.RemoveAll(dir))
}) })