Skip to content

Commit b612b3d

Browse files
committed
PMM-14431 Rename test, remove latency.
1 parent c9afe29 commit b612b3d

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

exporter/collstats_collector_test.go

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -61,11 +61,6 @@ func TestCollStatsCollector(t *testing.T) {
6161

6262
// The last \n at the end of this string is important
6363
expected := strings.NewReader(`
64-
# HELP mongodb_collstats_latencyStats_commands_latency collstats.latencyStats.commands.latency
65-
# TYPE mongodb_collstats_latencyStats_commands_latency untyped
66-
mongodb_collstats_latencyStats_commands_latency{collection="testcol_00",database="testdb"} 0
67-
mongodb_collstats_latencyStats_commands_latency{collection="testcol_01",database="testdb"} 0
68-
mongodb_collstats_latencyStats_commands_latency{collection="testcol_02",database="testdb"} 0
6964
# HELP mongodb_collstats_latencyStats_transactions_ops collstats.latencyStats.transactions.ops
7065
# TYPE mongodb_collstats_latencyStats_transactions_ops untyped
7166
mongodb_collstats_latencyStats_transactions_ops{collection="testcol_00",database="testdb"} 0
@@ -88,7 +83,6 @@ mongodb_collstats_storageStats_capped{collection="testcol_02",database="testdb"}
8883
// 2. We need to check against know values. Don't use metrics that return counters like uptime
8984
// or counters like the number of transactions because they won't return a known value to compare
9085
filter := []string{
91-
"mongodb_collstats_latencyStats_commands_latency",
9286
"mongodb_collstats_storageStats_capped",
9387
"mongodb_collstats_storageStats_indexSizes",
9488
"mongodb_collstats_latencyStats_transactions_ops",
@@ -97,7 +91,7 @@ mongodb_collstats_storageStats_capped{collection="testcol_02",database="testdb"}
9791
assert.NoError(t, err)
9892
}
9993

100-
func TestCollStatsCollectorAccountIndexes(t *testing.T) {
94+
func TestCollStatsForFakeCountType(t *testing.T) {
10195
t.Parallel()
10296
ctx, cancel := context.WithTimeout(t.Context(), 3*time.Second)
10397
defer cancel()

0 commit comments

Comments
 (0)