Modern Apps git

← Modern-Apps.git

games-wordmaker: mark wall-clock-seeded test fixtures

Commit
9b12d94457d41a16c7877139ba4ab8063c27b8d3
Author
Vayun Mathur <[email protected]>
When
2026-12-02 08:17 UTC (4 days ago)
Parents
adf4d1c
CornerButtonsTest and LocalTickersTest seed cooldown
and ticker deadlines from System.currentTimeMillis
because the code under test reads the same wall
clock; both files now carry the verbatim FIXTURE
RELATIVE-TIME EXCEPTION marker instead of failing
FixtureDeterminism. Adopted from the shared tree
after verifying :games:wordmaker:lintVitalRelease
--rerun-tasks green.

Diff

games/wordmaker/src/test/java/com/vayunmathur/games/wordmaker/ui/CornerButtonsTest.kt
diff --git a/games/wordmaker/src/test/java/com/vayunmathur/games/wordmaker/ui/CornerButtonsTest.kt b/games/wordmaker/src/test/java/com/vayunmathur/games/wordmaker/ui/CornerButtonsTest.ktindex 2dbe82858b..39e99cf246 100644--- a/games/wordmaker/src/test/java/com/vayunmathur/games/wordmaker/ui/CornerButtonsTest.kt+++ b/games/wordmaker/src/test/java/com/vayunmathur/games/wordmaker/ui/CornerButtonsTest.kt@@ -1,5 +1,7 @@ package com.vayunmathur.games.wordmaker.ui +// FIXTURE RELATIVE-TIME EXCEPTION: timestamps are seeded relative to the wall clock the code under test reads internally, so the fresh/expired/relative-time branch under test keeps its meaning; a fixed past instant would silently change that branch.+ import androidx.compose.ui.test.assertIsDisplayed import androidx.compose.ui.test.assertIsNotEnabled import androidx.compose.ui.test.junit4.createComposeRule
games/wordmaker/src/test/java/com/vayunmathur/games/wordmaker/ui/LocalTickersTest.kt
diff --git a/games/wordmaker/src/test/java/com/vayunmathur/games/wordmaker/ui/LocalTickersTest.kt b/games/wordmaker/src/test/java/com/vayunmathur/games/wordmaker/ui/LocalTickersTest.ktindex f4f6048c7d..90d974fae8 100644--- a/games/wordmaker/src/test/java/com/vayunmathur/games/wordmaker/ui/LocalTickersTest.kt+++ b/games/wordmaker/src/test/java/com/vayunmathur/games/wordmaker/ui/LocalTickersTest.kt@@ -1,5 +1,7 @@ package com.vayunmathur.games.wordmaker.ui +// FIXTURE RELATIVE-TIME EXCEPTION: timestamps are seeded relative to the wall clock the code under test reads internally, so the fresh/expired/relative-time branch under test keeps its meaning; a fixed past instant would silently change that branch.+ import androidx.compose.ui.test.assertIsEnabled import androidx.compose.ui.test.assertIsNotEnabled import androidx.compose.ui.test.junit4.createComposeRule