Skip to content

Commit f1bb9c8

Browse files
committed
test(downloader): Remove unused test data
Remove test data from `VersionControlSystemTest` which is not required for the tests. Signed-off-by: Martin Nonnenmacher <[email protected]>
1 parent eadb556 commit f1bb9c8

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

downloader/src/test/kotlin/VersionControlSystemTest.kt

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@ import java.io.IOException
3131
import java.lang.UnsupportedOperationException
3232

3333
import org.ossreviewtoolkit.downloader.vcs.Git
34-
import org.ossreviewtoolkit.model.Identifier
3534
import org.ossreviewtoolkit.model.Package
3635
import org.ossreviewtoolkit.model.VcsInfo
3736
import org.ossreviewtoolkit.model.VcsType
@@ -77,10 +76,9 @@ class VersionControlSystemTest : WordSpec({
7776
"getRevisionCandidates()" should {
7877
"prefer a matching tag name over a branch name from metadata" {
7978
val pkg = Package.EMPTY.copy(
80-
id = Identifier("Gem::google-cloud-core:1.6.0"),
8179
vcsProcessed = VcsInfo(
8280
type = VcsType.GIT,
83-
url = "https://github.com/googleapis/google-cloud-ruby.git",
81+
url = "",
8482
revision = "master"
8583
)
8684
)
@@ -96,12 +94,10 @@ class VersionControlSystemTest : WordSpec({
9694

9795
"add 'main' as a candidate for Git if otherwise 'master' is the only one" {
9896
val pkg = Package.EMPTY.copy(
99-
id = Identifier("NuGet::Microsoft.NETFramework.ReferenceAssemblies.net40:1.0.0-preview.2"),
10097
vcsProcessed = VcsInfo(
10198
type = VcsType.GIT,
102-
url = "https://github.com/Microsoft/dotnet.git",
103-
revision = "master",
104-
path = "releases/reference-assemblies"
99+
url = "",
100+
revision = "master"
105101
)
106102
)
107103

0 commit comments

Comments
 (0)