Skip to content

Commit

Permalink
mock: let k vary in BFT tests
Browse files Browse the repository at this point in the history
  • Loading branch information
nfrisby committed Feb 27, 2020
1 parent 002076a commit 9100b9b
Showing 1 changed file with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,10 @@ import Test.Util.Orphans.Arbitrary ()

tests :: TestTree
tests = testGroup "BFT" [
testProperty "simple convergence" $
prop_simple_bft_convergence k
testProperty "simple convergence" $ \tc ->
forAll (SecurityParam <$> elements [2 .. 10]) $ \k ->
prop_simple_bft_convergence k tc
]
where
k = SecurityParam 5

prop_simple_bft_convergence :: SecurityParam
-> TestConfig
Expand Down

0 comments on commit 9100b9b

Please sign in to comment.