Skip to content

Commit fe2fb78

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

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
@@ -163,7 +163,7 @@ class OrtResultTest : WordSpec({
163163
"getDefinitionFilePathRelativeToAnalyzerRoot()" should {
164164
"use the correct vcs" {
165165
val vcs = VcsInfo(type = VcsType.GIT, url = "https://example.com/git", revision = "")
166-
val provenance = RepositoryProvenance(vcsInfo = vcs, resolvedRevision = vcs.revision)
166+
val provenance = RepositoryProvenance(vcsInfo = vcs, resolvedRevision = HashAlgorithm.SHA1.emptyValue)
167167
val nestedVcs1 = VcsInfo(type = VcsType.GIT, url = "https://example.com/git1", revision = "")
168168
val nestedVcs2 = VcsInfo(type = VcsType.GIT, url = "https://example.com/git2", revision = "")
169169
val project1 = Project.EMPTY.copy(
@@ -204,7 +204,7 @@ class OrtResultTest : WordSpec({
204204

205205
"fail if no vcs matches" {
206206
val vcs = VcsInfo(type = VcsType.GIT, url = "https://example.com/git", revision = "")
207-
val provenance = RepositoryProvenance(vcsInfo = vcs, resolvedRevision = vcs.revision)
207+
val provenance = RepositoryProvenance(vcsInfo = vcs, resolvedRevision = HashAlgorithm.SHA1.emptyValue)
208208
val nestedVcs1 = VcsInfo(type = VcsType.GIT, url = "https://example.com/git1", revision = "")
209209
val nestedVcs2 = VcsInfo(type = VcsType.GIT, url = "https://example.com/git2", revision = "")
210210
val project = Project.EMPTY.copy(

0 commit comments

Comments
 (0)