Skip to content

Commit

Permalink
PackageTests/NewUpdate: fix skipping flaky tests
Browse files Browse the repository at this point in the history
RejectFutureIndexStates and UpdateIndexState are marked "skip", but it's
under withRemoteRepo, which causes flakiness before skip is called.
  • Loading branch information
Zoe Zuser authored and Mikolaj committed May 23, 2024
1 parent 93f4c0d commit 5d3b8a0
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,10 +1,14 @@
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
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,13 @@
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.
Expand Down

0 comments on commit 5d3b8a0

Please sign in to comment.