Skip to content

Commit

Permalink
Mark continue_as_new as not implemented in testing context (#299)
Browse files Browse the repository at this point in the history
Raise NotImplementedError instead of NoMethodError for clarify.
  • Loading branch information
taonic authored May 9, 2024
1 parent 34a7e4d commit 3fbc675
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/temporal/testing/local_workflow_context.rb
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,10 @@ def fail(exception)
raise exception
end

def continue_as_new(*input, **args)
raise NotImplementedError, 'not yet available for testing'
end

def wait_for_all(*futures)
futures.each(&:wait)

Expand Down

0 comments on commit 3fbc675

Please sign in to comment.