Skip to content

Commit 624863f

Browse files
aknuds1alvinlin123
authored andcommitted
Reintroduce pkg/util/test, in place of dskit/test (cortexproject#4618)
Signed-off-by: Arve Knudsen <[email protected]> Signed-off-by: Alvin Lin <[email protected]>
1 parent b887d1a commit 624863f

File tree

6 files changed

+4
-5
lines changed

6 files changed

+4
-5
lines changed

pkg/ring/basic_lifecycler_delegates_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,12 @@ import (
88

99
"github.com/go-kit/log"
1010
"github.com/grafana/dskit/services"
11-
"github.com/grafana/dskit/test"
1211
"github.com/prometheus/client_golang/prometheus/testutil"
1312
"github.com/stretchr/testify/assert"
1413
"github.com/stretchr/testify/require"
1514

1615
"github.com/cortexproject/cortex/pkg/util/concurrency"
16+
"github.com/cortexproject/cortex/pkg/util/test"
1717
)
1818

1919
func TestLeaveOnStoppingDelegate(t *testing.T) {

pkg/ring/basic_lifecycler_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,13 @@ import (
77

88
"github.com/go-kit/log"
99
"github.com/grafana/dskit/services"
10-
"github.com/grafana/dskit/test"
1110
"github.com/prometheus/client_golang/prometheus/testutil"
1211
"github.com/stretchr/testify/assert"
1312
"github.com/stretchr/testify/require"
1413

1514
"github.com/cortexproject/cortex/pkg/ring/kv"
1615
"github.com/cortexproject/cortex/pkg/ring/kv/consul"
16+
"github.com/cortexproject/cortex/pkg/util/test"
1717
)
1818

1919
const (

pkg/ring/lifecycler_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,12 @@ import (
1010
"github.com/go-kit/log"
1111
"github.com/grafana/dskit/flagext"
1212
"github.com/grafana/dskit/services"
13-
"github.com/grafana/dskit/test"
1413
"github.com/pkg/errors"
1514
"github.com/stretchr/testify/assert"
1615
"github.com/stretchr/testify/require"
1716

1817
"github.com/cortexproject/cortex/pkg/ring/kv/consul"
18+
"github.com/cortexproject/cortex/pkg/util/test"
1919
)
2020

2121
const (

pkg/ring/ring_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ import (
1515
"github.com/go-kit/log"
1616
"github.com/grafana/dskit/flagext"
1717
"github.com/grafana/dskit/services"
18-
"github.com/grafana/dskit/test"
1918
"github.com/prometheus/client_golang/prometheus"
2019
"github.com/prometheus/client_golang/prometheus/testutil"
2120
"github.com/stretchr/testify/assert"
@@ -25,6 +24,7 @@ import (
2524
"github.com/cortexproject/cortex/pkg/ring/kv/consul"
2625
"github.com/cortexproject/cortex/pkg/ring/shard"
2726
"github.com/cortexproject/cortex/pkg/ring/util"
27+
"github.com/cortexproject/cortex/pkg/util/test"
2828
)
2929

3030
const (

vendor/modules.txt

Lines changed: 0 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)