Skip to content

Commit 4efc47d

Browse files
try to discard things more freely
1 parent ee26c95 commit 4efc47d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

quickcheck-dynamic/src/Test/QuickCheck/ParallelActions.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ checkTrace s env (Node (TraceStep r v (ActionWithPolarity a _)) trs) =
200200
(polarAction act)
201201
(lookUpVar env')
202202
r
203-
in computePrecondition s act && checkPost && (null trs || any (checkTrace s' env') trs)
203+
in (computePrecondition s act || discard) && checkPost && (null trs || any (checkTrace s' env') trs)
204204

205205
prepend :: [a] -> [Tree a] -> [Tree a]
206206
prepend [] ts = ts

quickcheck-dynamic/test/Spec/DynamicLogic/RegistryModel.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -258,7 +258,7 @@ prop_parRegistryIOSimPor (IOSimActions as) =
258258

259259
monadicIOSimPOR_ :: Testable a => (forall s. PropertyM (IOSim s) a) -> Property
260260
monadicIOSimPOR_ prop = forAllBlind prop' $ \ p -> exploreSimTrace id p $ \ _ tr ->
261-
either (flip counterexample False . show) id $ traceResult False tr
261+
either discard id $ traceResult False tr
262262
where
263263
prop' :: Gen (forall s. IOSim s Property)
264264
prop' = do

0 commit comments

Comments
 (0)