diff options
Diffstat (limited to 'spec/lib/gitlab/http_spec.rb')
-rw-r--r-- | spec/lib/gitlab/http_spec.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/lib/gitlab/http_spec.rb b/spec/lib/gitlab/http_spec.rb index 7dbd21e6914..c2fb987d195 100644 --- a/spec/lib/gitlab/http_spec.rb +++ b/spec/lib/gitlab/http_spec.rb @@ -246,10 +246,10 @@ RSpec.describe Gitlab::HTTP do context 'when :timeout is set' do it 'does not set any default timeouts' do expect(described_class).to receive(:httparty_perform_request).with( - Net::HTTP::Get, 'http://example.org', timeout: 1 + Net::HTTP::Get, 'http://example.org', { timeout: 1 } ).and_call_original - described_class.get('http://example.org', timeout: 1) + described_class.get('http://example.org', { timeout: 1 }) end end |