Skip to content

Commit 1ebf0b7

Browse files
add new parameter to test initialize
1 parent 4672cc3 commit 1ebf0b7

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

spec/unit/lib/temporal/grpc_client_spec.rb

+2
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@
1111

1212
describe '#start_workflow_execution' do
1313
it 'provides the existing run_id when the workflow is already started' do
14+
client = Temporal::Client::GRPCClient.new(nil, nil, nil, :this_channel_is_insecure)
15+
allow(client).to receive(:client).and_return(grpc_stub)
1416
allow(grpc_stub).to receive(:start_workflow_execution).and_raise(
1517
GRPC::AlreadyExists,
1618
'Workflow execution already finished successfully. WorkflowId: TestWorkflow-1, RunId: baaf1d86-4459-4ecd-a288-47aeae55245d. Workflow Id reuse policy: allow duplicate workflow Id if last run failed.'

0 commit comments

Comments
 (0)