Skip to content

Commit

Permalink
3368
Browse files Browse the repository at this point in the history
  • Loading branch information
comandeo-mongo committed Feb 13, 2024
1 parent f7f3e88 commit 00de01d
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions spec/mongo/operation/context_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,7 @@
end

describe '#remaining_timeout_ms' do
let(:context) {
described_class.new(timeout_ms: timeout_ms)
}
let(:context) { described_class.new(timeout_ms: timeout_ms) }

context 'when timeout_ms is nil' do
let(:timeout_ms) { nil }
Expand All @@ -68,8 +66,7 @@

context 'when timeout_ms is positive' do
before do
allow(Mongo::Utils).to receive(:monotonic_time).ordered.and_return([100.0, 105.0])
# allow(Mongo::Utils).to receive(:monotonic_time).ordered.and_return(105.0)
allow(Mongo::Utils).to receive(:monotonic_time).ordered.and_return(100.0, 105.0)
end

let(:timeout_ms) { 10_000 }
Expand Down

0 comments on commit 00de01d

Please sign in to comment.