Skip to content
2 changes: 1 addition & 1 deletion lib/mongo/server/description/features.rb
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ class Features
#
# If there are no currently-deprecated wire versions, this should be
# set to an empty range (e.g. the EMPTY_RANGE constant).
DEPRECATED_WIRE_VERSIONS = 6..6
DEPRECATED_WIRE_VERSIONS = 6..7

# make sure the deprecated versions are valid
if DEPRECATED_WIRE_VERSIONS.min
Expand Down
6 changes: 6 additions & 0 deletions spec/mongo/server/description/features_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -291,4 +291,10 @@
end
end
end

[ 6, 7 ].each do |deprecated_wire_version|
it "declares wire version #{deprecated_wire_version} as deprecated" do
expect(described_class::DEPRECATED_WIRE_VERSIONS).to include(deprecated_wire_version)
end
end
end
Loading