Skip to content

Commit

Permalink
rspec test fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
tristan-instacart committed May 20, 2021
1 parent 1ebf0b7 commit f984a3b
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions spec/unit/lib/temporal/grpc_client_spec.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
describe Temporal::Client::GRPCClient do
subject { Temporal::Client::GRPCClient.new(nil, nil, nil) }
subject { Temporal::Client::GRPCClient.new(nil, nil, nil, :this_channel_is_insecure) }
let(:grpc_stub) { double('grpc stub') }
let(:namespace) { 'test-namespace' }
let(:workflow_id) { SecureRandom.uuid }
Expand All @@ -11,8 +11,6 @@

describe '#start_workflow_execution' do
it 'provides the existing run_id when the workflow is already started' do
client = Temporal::Client::GRPCClient.new(nil, nil, nil, :this_channel_is_insecure)
allow(client).to receive(:client).and_return(grpc_stub)
allow(grpc_stub).to receive(:start_workflow_execution).and_raise(
GRPC::AlreadyExists,
'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.'
Expand Down

0 comments on commit f984a3b

Please sign in to comment.