File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -44,14 +44,12 @@ Temporal runtime — and return its result in 'IO'.
4444See 'MockActivityEnvironment' and 'mkMockActivityEnvironment' for additional
4545usage 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-}
5050runMockActivity :: MonadIO m => MockActivityEnvironment env -> Activity env a -> m a
5151runMockActivity 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'
You can’t perform that action at this time.
0 commit comments