Skip to content

Commit

Permalink
Merge pull request #10035 from bacchanalia/zz/fix-flaky-tests
Browse files Browse the repository at this point in the history
PackageTests/NewUpdate: fix skipping flaky tests
  • Loading branch information
mergify[bot] authored May 23, 2024
2 parents 93f4c0d + 5d3b8a0 commit 50d9f9c
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 50d9f9c

Please sign in to comment.