Skip to content

Commit cc83150

Browse files
committed
fix(OrtResultTest): No more blank revisions
Signed-off-by: Jens Keim <[email protected]>
1 parent 2301ab2 commit cc83150

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

model/src/test/kotlin/OrtResultTest.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ class OrtResultTest : WordSpec({
127127
"getDefinitionFilePathRelativeToAnalyzerRoot()" should {
128128
"use the correct vcs" {
129129
val vcs = VcsInfo(type = VcsType.GIT, url = "https://example.com/git", revision = "")
130-
val provenance = RepositoryProvenance(vcsInfo = vcs, resolvedRevision = vcs.revision)
130+
val provenance = RepositoryProvenance(vcsInfo = vcs, resolvedRevision = HashAlgorithm.SHA1.emptyValue)
131131
val nestedVcs1 = VcsInfo(type = VcsType.GIT, url = "https://example.com/git1", revision = "")
132132
val nestedVcs2 = VcsInfo(type = VcsType.GIT, url = "https://example.com/git2", revision = "")
133133
val project1 = Project.EMPTY.copy(
@@ -168,7 +168,7 @@ class OrtResultTest : WordSpec({
168168

169169
"fail if no vcs matches" {
170170
val vcs = VcsInfo(type = VcsType.GIT, url = "https://example.com/git", revision = "")
171-
val provenance = RepositoryProvenance(vcsInfo = vcs, resolvedRevision = vcs.revision)
171+
val provenance = RepositoryProvenance(vcsInfo = vcs, resolvedRevision = HashAlgorithm.SHA1.emptyValue)
172172
val nestedVcs1 = VcsInfo(type = VcsType.GIT, url = "https://example.com/git1", revision = "")
173173
val nestedVcs2 = VcsInfo(type = VcsType.GIT, url = "https://example.com/git2", revision = "")
174174
val project = Project.EMPTY.copy(

0 commit comments

Comments
 (0)