1 import Test
.Cabal
.Prelude
3 main
= skipIfCIAndWindows
10230 >> cabalTest
(flakyIfCI
9530 $ withRemoteRepo
"repo" $ do
5 -- The _first_ update call causes a warning about missing mirrors, the warning
6 -- is platform-dependent and it's not part of the test expectations, so we
7 -- check the output manually.
8 res
<- recordMode DoNotRecord
$
9 cabal
' "update" ["repository.localhost,2022-01-28T02:36:41Z"]
10 assertOutputContains
"The index-state is set to 2022-01-28T02:36:41Z" res
11 assertOutputDoesNotContain
"revert" res
12 cabal
"update" ["repository.localhost,2016-09-24T17:47:48Z"]
13 cabal
"update" ["repository.localhost,2022-01-28T02:36:41Z"])