Skip to content

Commit

Permalink
1791
Browse files Browse the repository at this point in the history
  • Loading branch information
comandeo-mongo committed Jan 11, 2024
1 parent 4ab6016 commit b14aebb
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions spec/mongo/session_transaction_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,7 @@ class SessionTransactionSpecError < StandardError; end
expect(Mongo::Utils).to receive(:monotonic_time).ordered.and_return(start + 1)
expect(Mongo::Utils).to receive(:monotonic_time).ordered.and_return(start + 2)
expect(Mongo::Utils).to receive(:monotonic_time).ordered.and_return(start + 200)
allow(session).to receive('check_transactions_supported!').and_return true

expect do
session.with_transaction do
Expand Down Expand Up @@ -169,6 +170,7 @@ class SessionTransactionSpecError < StandardError; end
expect(Mongo::Utils).to receive(:monotonic_time).ordered.and_return(start + i)
end
expect(Mongo::Utils).to receive(:monotonic_time).ordered.and_return(start + 200)
allow(session).to receive('check_transactions_supported!').and_return true

exc = Mongo::Error::OperationFailure.new('timeout test')
exc.add_label(label)
Expand Down

0 comments on commit b14aebb

Please # to comment.