Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
Signed-off-by: Ivan Milchev <[email protected]>
  • Loading branch information
imilchev committed Feb 17, 2024
1 parent 510783a commit 9e04a16
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions explorer/scan/discovery_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ func TestDiscoveredAssets_GetAssetsByPlatformID(t *testing.T) {
// Make sure adding duplicates is not possible
assets := d.GetAssetsByPlatformID(allPlatformIds[0])
assert.Len(t, assets, 1)
assert.Equal(t, allPlatformIds[0], assets[0].PlatformIds[0])
assert.Equal(t, allPlatformIds[0], assets[0].Asset.PlatformIds[0])
}

func TestDiscoveredAssets_GetAssetsByPlatformID_Empty(t *testing.T) {
Expand Down Expand Up @@ -110,7 +110,7 @@ func TestDiscoveredAssets_GetAssetsByPlatformID_Empty(t *testing.T) {
assert.Len(t, assets, 10)
platformIds := []string{}
for _, a := range assets {
platformIds = append(platformIds, a.PlatformIds[0])
platformIds = append(platformIds, a.Asset.PlatformIds[0])
}
assert.ElementsMatch(t, allPlatformIds, platformIds)
}
Expand Down

0 comments on commit 9e04a16

Please sign in to comment.