@@ -498,13 +498,13 @@ jsonErrorFail r = GHC.withFrozenCallStack $ case r of
498
498
jsonErrorFailM :: (MonadTest m , HasCallStack ) => m (Result a ) -> m a
499
499
jsonErrorFailM f = GHC. withFrozenCallStack $ f >>= jsonErrorFail
500
500
501
- -- | Run the operation 'f' once a second until it returns 'True' or the deadline expires.
501
+ -- | Run the operation 'f' once per 'period' until it returns 'True' or the deadline expires.
502
502
--
503
503
-- Expiration of the deadline results in an assertion failure
504
504
byDeadlineIO :: (MonadAssertion m , MonadTest m , MonadIO m , HasCallStack ) => NominalDiffTime -> UTCTime -> String -> IO a -> m a
505
505
byDeadlineIO period deadline errorMessage f = GHC. withFrozenCallStack $ byDeadlineM period deadline errorMessage $ liftIO f
506
506
507
- -- | Run the operation 'f' once a second until it returns 'True' or the deadline expires.
507
+ -- | Run the operation 'f' once per 'period' until it returns 'True' or the deadline expires.
508
508
--
509
509
-- Expiration of the deadline results in an assertion failure
510
510
byDeadlineM :: forall m a . (MonadAssertion m , MonadTest m , MonadIO m , HasCallStack ) => NominalDiffTime -> UTCTime -> String -> m a -> m a
@@ -526,13 +526,13 @@ byDeadlineM period deadline errorMessage f = GHC.withFrozenCallStack $ do
526
526
void $ failMessage GHC. callStack $ " Condition not met by deadline: " <> errorMessage
527
527
H. throwAssertion e
528
528
529
- -- | Run the operation 'f' once a second until it returns 'True' or the duration expires.
529
+ -- | Run the operation 'f' once per 'period' until it returns 'True' or the duration expires.
530
530
--
531
531
-- Expiration of the duration results in an assertion failure
532
532
byDurationIO :: (MonadAssertion m , MonadTest m , MonadIO m , HasCallStack ) => NominalDiffTime -> NominalDiffTime -> String -> IO a -> m a
533
533
byDurationIO period duration errorMessage f = GHC. withFrozenCallStack $ byDurationM period duration errorMessage $ liftIO f
534
534
535
- -- | Run the operation 'f' once a second until it returns 'True' or the duration expires.
535
+ -- | Run the operation 'f' once per 'period' until it returns 'True' or the duration expires.
536
536
--
537
537
-- Expiration of the duration results in an assertion failure
538
538
byDurationM :: (MonadAssertion m , MonadTest m , MonadIO m , HasCallStack ) => NominalDiffTime -> NominalDiffTime -> String -> m a -> m a
0 commit comments