Skip to content

Commit 3fbc675

Browse files
authored
Mark continue_as_new as not implemented in testing context (#299)
Raise NotImplementedError instead of NoMethodError for clarify.
1 parent 34a7e4d commit 3fbc675

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

lib/temporal/testing/local_workflow_context.rb

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -180,6 +180,10 @@ def fail(exception)
180180
raise exception
181181
end
182182

183+
def continue_as_new(*input, **args)
184+
raise NotImplementedError, 'not yet available for testing'
185+
end
186+
183187
def wait_for_all(*futures)
184188
futures.each(&:wait)
185189

0 commit comments

Comments
 (0)