Skip to content

Commit

Permalink
Merge pull request #626 from ethereum/faster-test
Browse files Browse the repository at this point in the history
Faster test running by default
  • Loading branch information
msooseth authored Feb 13, 2025
2 parents 743613c + 9338d01 commit 7763256
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion test/EVM/Test/Utils.hs
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ runSolidityTestCustom testFile match timeout maxIter ffiAllowed rpcinfo projectT
internalError $ "Error compiling test file " <> show testFile <> " in directory "
<> show root <> " using project type " <> show projectType
Right bo@(BuildOutput contracts _) -> do
withSolvers Z3 1 1 timeout $ \solvers -> do
withSolvers Z3 3 1 timeout $ \solvers -> do
opts <- liftIO $ testOpts solvers root (Just bo) match maxIter ffiAllowed rpcinfo
unitTest opts contracts

Expand Down
4 changes: 2 additions & 2 deletions test/test.hs
Original file line number Diff line number Diff line change
Expand Up @@ -106,10 +106,10 @@ prop :: Testable prop => ReaderT Env IO prop -> Property
prop a = ioProperty $ runEnv testEnv a

withDefaultSolver :: App m => (SolverGroup -> m a) -> m a
withDefaultSolver = withSolvers Z3 1 1 Nothing
withDefaultSolver = withSolvers Z3 3 1 Nothing

withCVC5Solver :: App m => (SolverGroup -> m a) -> m a
withCVC5Solver = withSolvers CVC5 1 1 Nothing
withCVC5Solver = withSolvers CVC5 3 1 Nothing

main :: IO ()
main = defaultMain tests
Expand Down

0 comments on commit 7763256

Please sign in to comment.