travel: resolve committed merge conflict in TravelW6Test
- Commit
6dc1a50fa88e82fce89c5bb21786fd206f8bda2d- Author
- Vayun Mathur <[email protected]>
- When
- 2026-12-04 22:01 UTC (1 day ago)
- Parents
142aa57
The file on main carried committed conflict markers around the FIXTURE RELATIVE-TIME exception comment, so the travel unit-test source set could not compile at all. The two sides differed only in that comment, not in any test body: HEAD had a generic wording about timestamps seeded relative to the wall clock, while 813e881df (travel: dialog routes and per-route screenshot captures) had the specific wording that expired/live offer fixtures seed one hour either side of now. The rest of the committed file already matched the 813e881df side (it uses the setTravelContent helper from TestNavHost.kt throughout). Keep the 813e881df wording: it is the accurate one. flightResults_expiredAndLiveOffers seeds Instant.now() plus and minus 3600 seconds, and FlightResultsScreen computes time-to-expiry through rememberSecondsUntil, which reads the real clock, so a fixed past instant would change the branch under test. Keeping both wordings would duplicate the same exception marker for no benefit. No other conflict markers exist anywhere under travel/. Verified in this worktree with JDK 21, --max-workers=128: :travel:lint and :travel:lintVitalRelease pass, and TravelW6Test passes 7/7. A targeted run of TravelDeep2Test plus TravelW6Test also passes. The full :travel:testDevUnitTest run is not fully green for an unrelated pre-existing reason, reported separately: 430 to 431 of 432 tests pass and the only failures are in TravelDeep2Test, polluted by uncaught exceptions leaked from TravelOpsErrorTest (its FakeRepo does not override the customer/frequent-flyer writes, so viewModelScope coroutines reach the real SQLCipher database and fail with AndroidKeyStore not found under Robolectric). No production code is changed by this commit.
Diff
travel/src/test/java/com/vayunmathur/travel/ui/TravelW6Test.kt
diff --git a/travel/src/test/java/com/vayunmathur/travel/ui/TravelW6Test.kt b/travel/src/test/java/com/vayunmathur/travel/ui/TravelW6Test.ktindex e3e1ed7a0a..23d875b88a 100644--- a/travel/src/test/java/com/vayunmathur/travel/ui/TravelW6Test.kt+++ b/travel/src/test/java/com/vayunmathur/travel/ui/TravelW6Test.kt@@ -1,11 +1,6 @@ package com.vayunmathur.travel.ui -<<<<<<< HEAD-// 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.--======= // FIXTURE RELATIVE-TIME EXCEPTION: expired/live offer fixtures seed one hour either side of now because the results screen computes time-to-expiry from the real clock->>>>>>> 813e881df (travel: dialog routes and per-route screenshot captures) import androidx.compose.ui.test.assertIsDisplayed import androidx.compose.ui.test.hasSetTextAction import androidx.compose.ui.test.junit4.createComposeRule