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