Skip to content

Commit c9b3a32

Browse files
authored
[test-optimization] [SDTEST-1923] Rename tag name of Git Commit Sha Discrepancy metric (#5978)
1 parent 1ace907 commit c9b3a32

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

packages/dd-trace/src/plugins/util/test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -426,7 +426,7 @@ function checkShaDiscrepancies (ciMetadata, userProvidedGitMetadata) {
426426

427427
incrementCountMetric(
428428
TELEMETRY_GIT_SHA_MATCH,
429-
{ match: gitCommitShaMatch }
429+
{ matched: gitCommitShaMatch }
430430
)
431431
}
432432

packages/dd-trace/test/plugins/util/test.spec.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -592,7 +592,7 @@ describe('checkShaDiscrepancies', () => {
592592
discrepant_provider: discrepantProvider
593593
})
594594
})
595-
expect(incrementCountMetricStub).to.have.been.calledWith(TELEMETRY_GIT_SHA_MATCH, { match: false })
595+
expect(incrementCountMetricStub).to.have.been.calledWith(TELEMETRY_GIT_SHA_MATCH, { matched: false })
596596
})
597597

598598
it('return true if the CI/Git Client commit SHA is different from the user provided commit SHA', () => {
@@ -634,7 +634,7 @@ describe('checkShaDiscrepancies', () => {
634634
discrepant_provider: discrepantProvider
635635
})
636636
})
637-
expect(incrementCountMetricStub).to.have.been.calledWith(TELEMETRY_GIT_SHA_MATCH, { match: false })
637+
expect(incrementCountMetricStub).to.have.been.calledWith(TELEMETRY_GIT_SHA_MATCH, { matched: false })
638638
})
639639

640640
it('increment TELEMETRY_GIT_SHA_MATCH with match: true when all values match', () => {
@@ -663,6 +663,6 @@ describe('checkShaDiscrepancies', () => {
663663

664664
checkShaDiscrepancies(ciMetadata, userProvidedGitMetadata)
665665

666-
expect(incrementCountMetricStub).to.have.been.calledWith(TELEMETRY_GIT_SHA_MATCH, { match: true })
666+
expect(incrementCountMetricStub).to.have.been.calledWith(TELEMETRY_GIT_SHA_MATCH, { matched: true })
667667
})
668668
})

0 commit comments

Comments
 (0)