Skip to content

Commit

Permalink
Update specs with new service url
Browse files Browse the repository at this point in the history
  • Loading branch information
JeffPhan authored Aug 15, 2024
1 parent 2ccc86d commit b8d8206
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions spec/cme_fix_listener/trade_capture_report_requester_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -94,14 +94,14 @@

def failed_httparty_response
configurable_sleep_stub
allow(HTTParty).to receive(:post).with("https://services.cmegroup.com/cmestp/query", response_body).
allow(HTTParty).to receive(:post).with("https://posttrade.api.cmegroup.com/cmestp/query", response_body).
and_raise(Net::ReadTimeout)
expect(response).to eq nil
expect(HTTParty).to have_received(:post).twice
end

def successful_httparty_response
allow(HTTParty).to receive(:post).with("https://services.cmegroup.com/cmestp/query", response_body).
allow(HTTParty).to receive(:post).with("https://posttrade.api.cmegroup.com/cmestp/query", response_body).
and_return(:success)
expect(response).to eq :success
expect(HTTParty).to have_received(:post).once
Expand Down

0 comments on commit b8d8206

Please sign in to comment.