You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: dd-java-agent/agent-ci-visibility/src/test/groovy/datadog/trace/civisibility/telemetry/CiVisibilityMetricCollectorTest.groovy
+4-4Lines changed: 4 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -149,18 +149,18 @@ class CiVisibilityMetricCollectorTest extends Specification {
149
149
}
150
150
151
151
/**
152
-
* This test enumerates all possible metric+tags variants,
153
-
* then tries submitting all possible variant pairs (combinations of 2 different metric+tags).
152
+
* This test enumerates a few different tag combinations for every metric,
153
+
* then submits a metric count for each one.
154
154
* The goal is to ensure that index calculation logic and card-marking are done right.
155
155
*/
156
-
def"test submission of all possible count metric pairs"() {
156
+
def"test submission of different count metric pairs"() {
157
157
setup:
158
158
List<PossibleMetric> possibleMetrics = []
159
159
160
160
for (CiVisibilityCountMetricmetric : CiVisibilityCountMetric.values()) {
161
161
def metricTags = metric.getTags()
162
162
163
-
int cartesianProductSizeLimit =2000// limiting the number of combinations to avoid OOM/timeout
163
+
int cartesianProductSizeLimit =20// limiting the number of combinations to avoid OOM/timeout
164
164
for (TagValue[] tags : cartesianProduct(metricTags, cartesianProductSizeLimit)) { // iterate over combinations of metric tags
0 commit comments