Skip to content

Commit aedc465

Browse files
committed
Make flaky cardano-testnet test rerun on failure
1 parent ce977f8 commit aedc465

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

  • cardano-testnet/test/cardano-testnet-test/Cardano/Testnet/Test/Cli

cardano-testnet/test/cardano-testnet-test/Cardano/Testnet/Test/Cli/Query.hs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ import Testnet.Process.Cli.Transaction (TxOutAddress (..), mkSimpleSpe
5858
mkSpendOutputsOnlyTx, retrieveTransactionId, signTx, submitTx)
5959
import Testnet.Process.Run (execCli', execCliStdoutToJson, mkExecConfig)
6060
import Testnet.Process.RunIO (liftIOAnnotated)
61-
import Testnet.Property.Util (integrationWorkspace)
61+
import Testnet.Property.Util (integrationRetryWorkspace)
6262
import Testnet.Start.Types (GenesisOptions (..), NumPools (..), cardanoNumPools)
6363
import Testnet.TestQueryCmds (TestQueryCmds (..), forallQueryCommands)
6464
import Testnet.Types
@@ -76,7 +76,7 @@ import RIO (runRIO)
7676
-- If you want to recreate golden files, run the comment with
7777
-- RECREATE_GOLDEN_FILES=1 as its prefix
7878
hprop_cli_queries :: Property
79-
hprop_cli_queries = integrationWorkspace "cli-queries" $ \tempAbsBasePath' -> H.runWithDefaultWatchdog_ $ do
79+
hprop_cli_queries = integrationRetryWorkspace 2 "cli-queries" $ \tempAbsBasePath' -> H.runWithDefaultWatchdog_ $ do
8080
conf@Conf { tempAbsPath=tempAbsPath@(TmpAbsolutePath work) }
8181
<- mkConf tempAbsBasePath'
8282
let tempBaseAbsPath = makeTmpBaseAbsPath tempAbsPath

0 commit comments

Comments
 (0)