Skip to content

Commit 6d4cae2

Browse files
authored
fix: type mismatch in a test assertion (#3649)
1 parent d17b96f commit 6d4cae2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/artillery/test/publish-metrics/tracing/http-trace-assertions.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ async function runHttpTraceAssertions(t, testRunData, expectedOutcome) {
186186
requestSpans.filter(
187187
(span) =>
188188
span.attributes['http.status_code'] &&
189-
span.attributes['http.status_code'] === statusCode
189+
span.attributes['http.status_code'] === Number(statusCode)
190190
).length,
191191
reportSummary.counters[metric],
192192
`The number of spans with status code ${statusCode} should match the number of requests with that status code`

0 commit comments

Comments
 (0)