Skip to content

Commit b39242a

Browse files
committed
updated prometheus test to account for random attribute ordering
1 parent 7932374 commit b39242a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Tests/ExportersTests/Prometheus/PrometheusExporterTests.swift

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,8 @@ class PrometheusExporterTests: XCTestCase {
119119

120120
// Validate measure.
121121
XCTAssert(responseText.contains("# TYPE testGauge gauge"))
122-
XCTAssert(responseText.contains("testGauge{dim2=\"value1\",dim1=\"value1\"} 500"))
122+
XCTAssert(responseText.contains("testGauge{dim2=\"value1\",dim1=\"value1\"} 500") ||
123+
"testGauge{dim1=\"value1\",dim2=\"value1\"} 500"))
123124

124125
// Validate histogram.
125126
XCTAssert(responseText.contains("# TYPE testHistogram histogram"))

0 commit comments

Comments
 (0)