Skip to content

Commit ff8dfe3

Browse files
committed
account for change of behavior in 8.3
1 parent fb56a03 commit ff8dfe3

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

spec/mongo/cursor_spec.rb

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -572,6 +572,7 @@
572572

573573
context 'when the result set is iterated fully and the cursor id is non-zero' do
574574
min_server_fcv '5.0'
575+
max_server_fcv '8.2' # 8.3 will exhaust the cursor with the last getMore
575576

576577
let(:documents) do
577578
(1..5).map{ |i| { field: "test#{i}" }}
@@ -595,8 +596,8 @@
595596
end
596597

597598
it 'schedules a kill cursors command' do
598-
get_more_commands = subscriber.started_events.select { |e| e.command_name == 'killCursors' }
599-
expect(get_more_commands.length).to be 1
599+
commands = subscriber.started_events.select { |e| e.command_name == 'killCursors' }
600+
expect(commands.length).to be 1
600601
end
601602
end
602603
end

0 commit comments

Comments
 (0)