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