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

View file

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