spec/mongo/cluster/app_metadata_spec.rb in mongo-2.4.3 vs spec/mongo/cluster/app_metadata_spec.rb in mongo-2.5.0.beta
- old
+ new
@@ -93,11 +93,11 @@
before do
allow(app_metadata).to receive(:driver_doc).and_return('x'*500)
end
- it 'truncates the document to be just an ismaster command' do
- expect(app_metadata.ismaster_bytes.length).to eq(Mongo::Server::Monitor::Connection::ISMASTER_BYTES.length)
+ it 'truncates the document to be just an ismaster command and the compressors', unless: compression_enabled? do
+ expect(app_metadata.ismaster_bytes.length).to eq(Mongo::Server::Monitor::Connection::ISMASTER_BYTES.length + 26)
end
end
end
end
end
\ No newline at end of file