fix: correct AO-123 in hardcoded FM list to ASRTU-1 (61781)

User correction: AO-123 is ASRTU-1 (NORAD 61781, launched 2024-11-04,
in orbit), not Fox-1D (43137, re-entered 2024-02). Update the hardcoded
FM set and its tests to include ASRTU-1.
This commit is contained in:
atsunatsu committed 2026-09-24 12:57:25 +08:00
1 parent 70ada0d608
commit 5f90eebab4
3 files changed
+10 -9

No files matched your search

@@ -114,12 +114,13 @@ class SelectionRepoSearchTest {
@Test @Test
fun `FM virtual type shows only hardcoded FM satellites`() = runTest { fun `FM virtual type shows only hardcoded FM satellites`() = runTest {
val repo = createRepo(sampleItems) // AO-123 ASRTU-1 (61781) is on the hardcoded FM list; a random
// satellite (99999) is not.
val items = sampleItems + SatItem(catnum = 61781, name = "ASRTU-1")
val repo = createRepo(items)
repo.setTypes(listOf("AMSAT Live FM")) repo.setTypes(listOf("AMSAT Live FM"))
val results = repo.getEntriesFlow().first() val results = repo.getEntriesFlow().first()
// Hardcoded FM list: SO-50 (27607), ISS ZARYA (25544), AO-123 (43137). assertEquals(setOf(25544, 61781), results.map { it.catnum }.toSet())
// Only ISS ZARYA is present in the sample DB.
assertEquals(listOf(25544), results.map { it.catnum })
} }
@Test @Test
@@ -192,7 +193,7 @@ class SelectionRepoSearchTest {
@Test @Test
fun `virtual type with no matching satellites shows empty not everything`() = runTest { fun `virtual type with no matching satellites shows empty not everything`() = runTest {
// 硬编码 FM 列表 (27607/25544/43137) 里没有样本库中的卫星时, 选虚拟 // 硬编码 FM 列表 (27607/25544/61781) 里没有样本库中的卫星时, 选虚拟
// 类型应显示空列表, 而非全部卫星. // 类型应显示空列表, 而非全部卫星.
val items = listOf(SatItem(catnum = 7530, name = "AO-7 (AMSAT-OSCAR 7)")) val items = listOf(SatItem(catnum = 7530, name = "AO-7 (AMSAT-OSCAR 7)"))
val repo = createRepo(items) val repo = createRepo(items)
@@ -57,11 +57,11 @@ object Sources {
) )
/** /**
* Hardcoded AMSAT Live FM satellites (NORAD catnums): * Hardcoded AMSAT Live FM satellites (NORAD catnums):
* SO-50 (27607), ISS ZARYA (25544), AO-123 Fox-1D (43137). * SO-50 (27607), ISS ZARYA (25544), AO-123 ASRTU-1 (61781).
* Replaces the AMSAT live-page fetch: stable on any network, no * Replaces the AMSAT live-page fetch: stable on any network, no
* sync-time dependency, no stale-list or timeout failure modes. * sync-time dependency, no stale-list or timeout failure modes.
*/ */
val amSatFmCatnums = setOf(27607, 25544, 43137) val amSatFmCatnums = setOf(27607, 25544, 61781)
/** /**
* Hardcoded AMSAT Live linear (SSB/CW) satellites: * Hardcoded AMSAT Live linear (SSB/CW) satellites:
+2 -2
View File
@@ -1,8 +1,8 @@
[versions] [versions]
#noinspection UnusedVersionCatalogEntry #noinspection UnusedVersionCatalogEntry
appVersionCode = "506" appVersionCode = "507"
#noinspection UnusedVersionCatalogEntry #noinspection UnusedVersionCatalogEntry
appVersionName = "4.4.7-ba7opf.15.9" appVersionName = "4.4.7-ba7opf.15.10"
#noinspection UnusedVersionCatalogEntry #noinspection UnusedVersionCatalogEntry
compileSdk = "37" compileSdk = "37"
#noinspection UnusedVersionCatalogEntry #noinspection UnusedVersionCatalogEntry