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 (
|
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))
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in New Issue