From 654c07783c222529917f32e6a6c32141080f94ad Mon Sep 17 00:00:00 2001 From: beorn7 Date: Wed, 4 May 2022 13:43:23 +0200 Subject: [PATCH] Fix deprecation Signed-off-by: beorn7 --- tsdb/compact_test.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/tsdb/compact_test.go b/tsdb/compact_test.go index 73c478f98..f407cc9d0 100644 --- a/tsdb/compact_test.go +++ b/tsdb/compact_test.go @@ -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)) })