Skip to content

Commit 35ad04f

Browse files
committed
IsCluster: true
1 parent 3941803 commit 35ad04f

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

exporter/keys_test.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -656,9 +656,6 @@ func TestCheckSingleKeyDefaultsTo0(t *testing.T) {
656656
}
657657

658658
func TestClusterGetKeyInfo(t *testing.T) {
659-
t.Skip()
660-
return
661-
662659
clusterUri := os.Getenv("TEST_REDIS_CLUSTER_MASTER_URI")
663660
if clusterUri == "" {
664661
t.Skipf("Skipping TestClusterKeyValuesAndSizes, don't have env var TEST_REDIS_CLUSTER_MASTER_URI")
@@ -669,12 +666,15 @@ func TestClusterGetKeyInfo(t *testing.T) {
669666
Options{
670667
Namespace: "test",
671668
CheckSingleKeys: TestKeysHllName, Registry: prometheus.NewRegistry(),
669+
IsCluster: true,
672670
},
673671
)
674672
ts := httptest.NewServer(e)
675673
defer ts.Close()
676674

677-
setupDBKeysCluster(t, clusterUri)
675+
if err := setupDBKeysCluster(t, clusterUri); err != nil {
676+
t.Fatalf("setupDBKeysCluster() err: %s", err)
677+
}
678678
defer deleteKeysFromDBCluster(clusterUri)
679679

680680
chM := make(chan prometheus.Metric, 10000)

0 commit comments

Comments
 (0)