Skip to content

Commit 6b48177

Browse files
committed
test: Use exact hash in integration test assertion
- Replace generic pattern [a-f0-9]{40} # \d+\.\d+\.\d+ with exact values - More precise assertion: 3bd091313ae97be90be62696a2babe591a988eb8 # 0\.11\.0 - Matches unit test precision and validates exact expected output - Eliminates ambiguity in hash-to-tag update validation
1 parent 814a5c5 commit 6b48177

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

updater/tests/update-dependency.Tests.ps1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -319,8 +319,8 @@ FetchContent_MakeAvailable(sentry-native)
319319
UpdateDependency $testFile
320320

321321
$content = Get-Content $testFile -Raw
322-
# Should update to a new hash with tag comment (note: may have comment formatting issues)
323-
$content | Should -Match 'GIT_TAG [a-f0-9]{40} # \d+\.\d+\.\d+'
322+
# Should update to a new hash with tag comment
323+
$content | Should -Match 'GIT_TAG 3bd091313ae97be90be62696a2babe591a988eb8 # 0\.11\.0'
324324
$content | Should -Not -Match 'a64d5bd8ee130f2cda196b6fa7d9b65bfa6d32e2'
325325
}
326326

0 commit comments

Comments
 (0)