test(android): TrackRef needs albumId and artistId — #2704
android / Build + lint + test (push) Successful in 3m46s
android / Build + lint + test (push) Successful in 3m46s
The queue-filter test built TrackRefs without them; they have no defaults, so compileDebugUnitTestKotlin failed. Caught by CI on the Android lane while I was reading the Go one.
This commit is contained in:
@@ -13,7 +13,13 @@ import kotlin.test.assertTrue
|
|||||||
class DropUnavailableTest {
|
class DropUnavailableTest {
|
||||||
|
|
||||||
private fun track(id: String, unavailable: Boolean = false) =
|
private fun track(id: String, unavailable: Boolean = false) =
|
||||||
TrackRef(id = id, title = id, unavailable = unavailable)
|
TrackRef(
|
||||||
|
id = id,
|
||||||
|
title = id,
|
||||||
|
albumId = "al-1",
|
||||||
|
artistId = "ar-1",
|
||||||
|
unavailable = unavailable,
|
||||||
|
)
|
||||||
|
|
||||||
private fun queue(vararg spec: Pair<String, Boolean>) =
|
private fun queue(vararg spec: Pair<String, Boolean>) =
|
||||||
spec.map { (id, missing) -> track(id, missing) }
|
spec.map { (id, missing) -> track(id, missing) }
|
||||||
|
|||||||
Reference in New Issue
Block a user