Skip to content

Commit 814a5c5

Browse files
committed
test: Use exact hash instead of regex pattern in assertion
- Replace generic pattern [a-f0-9]{40} with actual 0.11.0 hash - More precise assertion: 3bd091313ae97be90be62696a2babe591a988eb8 - Consistent with integration test data expectations - Eliminates ambiguity in test validation
1 parent 6888e3f commit 814a5c5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

updater/tests/update-dependency-cmake.Tests.ps1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -296,7 +296,7 @@ FetchContent_MakeAvailable(sentry-native)
296296

297297
$content = Get-Content $hashTestFile -Raw
298298
# Should have new hash with tag comment
299-
$content | Should -Match 'GIT_TAG [a-f0-9]{40} # 0.11.0'
299+
$content | Should -Match 'GIT_TAG 3bd091313ae97be90be62696a2babe591a988eb8 # 0.11.0'
300300
# Should not have old hash or old comment
301301
$content | Should -Not -Match 'a64d5bd8ee130f2cda196b6fa7d9b65bfa6d32e2'
302302
$content | Should -Not -Match '# 0.9.1'
@@ -344,4 +344,4 @@ FetchContent_MakeAvailable(sentry-native)
344344

345345
# Note: Hash update tests require network access for git ls-remote
346346
# and are better suited for integration tests
347-
}
347+
}

0 commit comments

Comments
 (0)