Skip to content

Commit

Permalink
chore(scanner): Give a variable in a test a better name
Browse files Browse the repository at this point in the history
Signed-off-by: Sebastian Schuberth <[email protected]>
  • Loading branch information
sschuberth committed Oct 21, 2024
1 parent 3101aa8 commit e612c50
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions scanner/src/test/kotlin/storages/ClearlyDefinedStorageTest.kt
Original file line number Diff line number Diff line change
Expand Up @@ -202,12 +202,12 @@ class ClearlyDefinedStorageTest : WordSpec({

"use information from a source artifact if available" {
val sourceArtifact = RemoteArtifact("https://source-artifact.org/test", Hash.NONE)
val expUrl = COORDINATES.copy(type = ComponentType.SOURCE_ARCHIVE)
val coordinates = COORDINATES.copy(type = ComponentType.SOURCE_ARCHIVE)
val pkg = TEST_PACKAGE.copy(sourceArtifact = sourceArtifact)
val tools = listOf(toolUrl(expUrl, "scancode", SCANCODE_VERSION))
stubHarvestTools(server, expUrl, tools)
stubHarvestToolResponse(server, expUrl)
stubDefinitions(server, expUrl)
val tools = listOf(toolUrl(coordinates, "scancode", SCANCODE_VERSION))
stubHarvestTools(server, coordinates, tools)
stubHarvestToolResponse(server, coordinates)
stubDefinitions(server, coordinates)

val storage = ClearlyDefinedStorage(storageConfiguration(server))

Expand Down

0 comments on commit e612c50

Please sign in to comment.