Skip to content

Commit 0d4e325

Browse files
authored
docs: fix Haddock markup (#238)
1 parent 44116dd commit 0d4e325

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

sdk/src/Temporal/Testing/MockActivityEnvironment.hs

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -44,14 +44,12 @@ Temporal runtime — and return its result in 'IO'.
4444
See 'MockActivityEnvironment' and 'mkMockActivityEnvironment' for additional
4545
usage details.
4646
47-
__NOTE__: Any 'Activity' that makes Temporal Worker Client calls will throw
48-
an impure exception.
47+
__NOTE__: Any 'Activity' that makes Temporal Worker Client calls (e.g. via
48+
'askActivityClient') will lazily throw an 'IllegalWorkerClientException'.
4949
-}
5050
runMockActivity :: MonadIO m => MockActivityEnvironment env -> Activity env a -> m a
5151
runMockActivity env activity = do
5252
let
53-
-- NOTE: 'IllegalWorkerClientException' is thrown lazily, and will only be
54-
-- surfaced to the end-user if a call is made to 'askActivityClient'.
5553
actEnv =
5654
ActivityEnv
5755
env.info
@@ -65,6 +63,7 @@ runMockActivity env activity = do
6563

6664

6765
{- | Create a 'MockActivityEnvironment' with reasonable defaults for testing:
66+
6867
* scheduled and started times set to the Unix Epoch
6968
* all durations set to 1 second
7069
* empty 'headerFields'

0 commit comments

Comments
 (0)