@@ -15,6 +15,7 @@ import (
15
15
"github.com/stretchr/testify/assert"
16
16
"github.com/stretchr/testify/require"
17
17
"github.com/thanos-io/objstore"
18
+ "github.com/thanos-io/objstore/providers/filesystem"
18
19
"github.com/thanos-io/thanos/pkg/block"
19
20
"github.com/thanos-io/thanos/pkg/block/metadata"
20
21
@@ -41,7 +42,8 @@ func TestConverter(t *testing.T) {
41
42
cfg .Ring .InstanceID = "parquet-converter-1"
42
43
cfg .Ring .InstanceAddr = "1.2.3.4"
43
44
cfg .Ring .KVStore .Mock = ringStore
44
- bucketClient := objstore .NewInMemBucket ()
45
+ bucketClient , err := filesystem .NewBucket (t .TempDir ())
46
+ require .NoError (t , err )
45
47
userBucket := bucket .NewPrefixedBucketClient (bucketClient , user )
46
48
47
49
c , logger , _ := prepare (t , cfg , objstore .WithNoopInstr (bucketClient ), nil )
@@ -72,7 +74,7 @@ func TestConverter(t *testing.T) {
72
74
}
73
75
74
76
// Try to start the compactor with a bad consul kv-store. The
75
- err : = services .StartAndAwaitRunning (context .Background (), c )
77
+ err = services .StartAndAwaitRunning (context .Background (), c )
76
78
require .NoError (t , err )
77
79
defer services .StopAndAwaitTerminated (ctx , c ) // nolint:errcheck
78
80
0 commit comments