mirror of
https://github.com/prometheus/prometheus.git
synced 2024-12-26 06:04:05 -08:00
Fix deprecation
Signed-off-by: beorn7 <beorn@grafana.com>
This commit is contained in:
parent
3bc711e333
commit
654c07783c
|
@ -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))
|
||||
})
|
||||
|
|
Loading…
Reference in a new issue