Skip to content

Commit 75ecc85

Browse files
authored
Update exporter/replset_config_collector_test.go
1 parent 58da23b commit 75ecc85

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

exporter/replset_config_collector_test.go

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -63,11 +63,7 @@ func TestReplsetConfigCollectorNoSharding(t *testing.T) {
6363

6464
ti := labelsGetterMock{}
6565

66-
c := &replSetGetConfigCollector{
67-
ctx: ctx,
68-
client: client,
69-
topologyInfo: ti,
70-
}
66+
c := newReplicationSetConfigCollector(ctx, client, logrus.New(), false, ti)
7167

7268
// Replication set metrics should not be generated for unsharded server
7369
count := testutil.CollectAndCount(c)

0 commit comments

Comments
 (0)