We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fb56a03 commit ff8dfe3Copy full SHA for ff8dfe3
1 file changed
spec/mongo/cursor_spec.rb
@@ -572,6 +572,7 @@
572
573
context 'when the result set is iterated fully and the cursor id is non-zero' do
574
min_server_fcv '5.0'
575
+ max_server_fcv '8.2' # 8.3 will exhaust the cursor with the last getMore
576
577
let(:documents) do
578
(1..5).map{ |i| { field: "test#{i}" }}
@@ -595,8 +596,8 @@
595
596
end
597
598
it 'schedules a kill cursors command' do
- get_more_commands = subscriber.started_events.select { |e| e.command_name == 'killCursors' }
599
- expect(get_more_commands.length).to be 1
+ commands = subscriber.started_events.select { |e| e.command_name == 'killCursors' }
600
+ expect(commands.length).to be 1
601
602
603
0 commit comments