Skip to content

Commit f984a3b

Browse files
rspec test fixes
1 parent 1ebf0b7 commit f984a3b

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

spec/unit/lib/temporal/grpc_client_spec.rb

+1-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
describe Temporal::Client::GRPCClient do
2-
subject { Temporal::Client::GRPCClient.new(nil, nil, nil) }
2+
subject { Temporal::Client::GRPCClient.new(nil, nil, nil, :this_channel_is_insecure) }
33
let(:grpc_stub) { double('grpc stub') }
44
let(:namespace) { 'test-namespace' }
55
let(:workflow_id) { SecureRandom.uuid }
@@ -11,8 +11,6 @@
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)
1614
allow(grpc_stub).to receive(:start_workflow_execution).and_raise(
1715
GRPC::AlreadyExists,
1816
'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)