Skip to content

Commit

Permalink
FIXUP: test haddock
Browse files Browse the repository at this point in the history
  • Loading branch information
karknu committed Jan 29, 2025
1 parent 1aa8730 commit aa7bc10
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions network-mux/test/Test/Mux.hs
Original file line number Diff line number Diff line change
Expand Up @@ -1601,6 +1601,7 @@ prop_mux_restart_m (DummyRestartingInitiatorResponderApps rapps) = do



-- | Verifying starting and stopping of miniprotocols. Both normal exits and by exception.
prop_mux_start_m :: forall m.
( Alternative (STM m)
, MonadAsync m
Expand All @@ -1613,14 +1614,23 @@ prop_mux_start_m :: forall m.
, MonadTimer m
)
=> Mx.Bearer m
-- ^ Mux bearer
-> (DummyApp -> m ())
-- ^ trigger action that starts the app
-> ( DiffTime
-- ^ How long did the test run.
-> ((STM m (Either SomeException ())), DummyApp)
-- ^ Result for running the app, along with the app
-> m (Property, Either SomeException ())
)
-- ^ Verify that the app succeded/failed as expected when
-- the test stopped
-> DummyApps
-- ^ List of apps to test
-> DiffTime
-- ^ Maximum run time
-> DiffTime
-- ^ Time at which StartOnDemandAny should run
-> m Property
prop_mux_start_m bearer _ checkRes (DummyInitiatorApps apps) runTime _ = do
let minis = map (appToInfo Mx.InitiatorDirectionOnly) apps
Expand Down

0 comments on commit aa7bc10

Please sign in to comment.