From 86ade9384de97e6f179a5bc7bcc6984ae36735ee Mon Sep 17 00:00:00 2001 From: Artem Pelenitsyn Date: Sun, 7 Jan 2024 11:32:43 -0500 Subject: [PATCH] Disable flake index-state related tests, which often fail to `curl` Tracking ticket https://github.com/haskell/cabal/issues/9530 --- .../NewUpdate/RejectFutureIndexStates/cabal.test.hs | 3 +++ .../NewUpdate/UpdateIndexState/update-index-state.test.hs | 3 +++ 2 files changed, 6 insertions(+) diff --git a/cabal-testsuite/PackageTests/NewUpdate/RejectFutureIndexStates/cabal.test.hs b/cabal-testsuite/PackageTests/NewUpdate/RejectFutureIndexStates/cabal.test.hs index ca26a482d16..8d22aed3494 100644 --- a/cabal-testsuite/PackageTests/NewUpdate/RejectFutureIndexStates/cabal.test.hs +++ b/cabal-testsuite/PackageTests/NewUpdate/RejectFutureIndexStates/cabal.test.hs @@ -2,6 +2,9 @@ import Test.Cabal.Prelude import Data.List (isPrefixOf) main = cabalTest $ withProjectFile "cabal.project" $ withRemoteRepo "repo" $ do + + skip "Flaky test failing in `curl`, see #9530" + output <- last . words . head diff --git a/cabal-testsuite/PackageTests/NewUpdate/UpdateIndexState/update-index-state.test.hs b/cabal-testsuite/PackageTests/NewUpdate/UpdateIndexState/update-index-state.test.hs index 2be563c6bec..24b1e7b5dd6 100644 --- a/cabal-testsuite/PackageTests/NewUpdate/UpdateIndexState/update-index-state.test.hs +++ b/cabal-testsuite/PackageTests/NewUpdate/UpdateIndexState/update-index-state.test.hs @@ -1,6 +1,9 @@ import Test.Cabal.Prelude main = cabalTest $ withRemoteRepo "repo" $ do + + skip "Flaky test failing in `curl`, see #9530" + -- 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.