test(android): TrackRef needs albumId and artistId — #2704
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:
2026-08-17 13:09:06 -04:00
parent 7ba673ed83
commit b96285d6d9
@@ -13,7 +13,13 @@ import kotlin.test.assertTrue
class DropUnavailableTest {
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>) =
spec.map { (id, missing) -> track(id, missing) }