Skip to content

Commit f15f603

Browse files
committed
TOSQUASH remove leftover bounds check for Natural
1 parent fe778a3 commit f15f603

File tree

1 file changed

+1
-4
lines changed
  • ouroboros-consensus/test/consensus-test/Test/Consensus

1 file changed

+1
-4
lines changed

ouroboros-consensus/test/consensus-test/Test/Consensus/Mempool.hs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ module Test.Consensus.Mempool (tests) where
3535
import Cardano.Binary (Encoding, toCBOR)
3636
import Cardano.Crypto.Hash
3737
import Control.Exception (assert)
38-
import Control.Monad (foldM, forM, forM_, void, when)
38+
import Control.Monad (foldM, forM, forM_, void)
3939
import Control.Monad.Except (Except, runExcept)
4040
import Control.Monad.IOSim (runSimOrThrow)
4141
import Control.Monad.State (State, evalState, get, modify)
@@ -845,9 +845,6 @@ instance Arbitrary MempoolCapTestSetup where
845845
-- Note that we could pick @currentSize@, meaning that we can't add any
846846
-- more transactions to the Mempool
847847

848-
when (unByteSize32 capacityMaxBound >= 2^(32 :: Int)) $ do
849-
error "impossible!" -- could 'QC.discard' if this is actually feasible
850-
851848
capacity <- choose
852849
( unByteSize32 capacityMinBound
853850
, unByteSize32 capacityMaxBound

0 commit comments

Comments
 (0)