Skip to content
Snippets Groups Projects
Commit 5d3b8a0c authored by Zoe Zuser's avatar Zoe Zuser Committed by Mikolaj
Browse files

PackageTests/NewUpdate: fix skipping flaky tests

RejectFutureIndexStates and UpdateIndexState are marked "skip", but it's
under withRemoteRepo, which causes flakiness before skip is called.
parent 93f4c0d9
No related branches found
No related tags found
No related merge requests found
import Test.Cabal.Prelude
import Data.List (isPrefixOf)
main = cabalTest $ withProjectFile "cabal.project" $ withRemoteRepo "repo" $ do
main = cabalTest $ do
skip "Flaky test failing in `curl`, see #9530"
testBody
testBody = withProjectFile "cabal.project" $ withRemoteRepo "repo" $ do
output <- last
. words
. head
......
import Test.Cabal.Prelude
main = cabalTest $ withRemoteRepo "repo" $ do
main = cabalTest $ do
skip "Flaky test failing in `curl`, see #9530"
testBody
testBody = withRemoteRepo "repo" $ do
-- The _first_ update call causes a warning about missing mirrors, the warning
-- is platform-dependent and it's not part of the test expectations, so we
-- check the output manually.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment