Skip to content

Commit

Permalink
fix: two mistake in 2PC liveness property and test
Browse files Browse the repository at this point in the history
  • Loading branch information
stevana committed Dec 16, 2024
1 parent 1132713 commit 57ccad1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Spex/Experiment/Protocol3.hs
Original file line number Diff line number Diff line change
Expand Up @@ -371,7 +371,7 @@ test seed = do
( always
( Prop (\e -> e.from == Client && e.content == Write)
==> eventually
( Prop (\e -> e.to == Client && (e.content == Ack) || e.content == Abort)
( Prop (\e -> e.to == Client && (e.content == Ack || e.content == Abort))
)
)
)
Expand All @@ -383,6 +383,7 @@ test seed = do
return False

t :: Int -> IO ()
t 0 = return ()
t numberOfTests = do
seed <- randomIO
passed <- test seed
Expand Down

0 comments on commit 57ccad1

Please sign in to comment.