You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
1) Mongoid::Contextual::Mongo#last when including a limit when the context is cached when query cache is enabled when getting one document before when getting more than one document returns the correct documents and touches the database
Failure/Error: raw_docs = v.to_a.reverse
The message 'command_started' was received by #<Mongo::Server::PendingConnection:65352 @description=#<Mongo::Server::Description:0x4b090a39>, @socket=#<Mongo::Socket::TCP:0x38874c31>, @options={auth_source=>admin, server_selection_timeout=>3.42, heartbeat_frequency=>180, user=>mongoid-user, *** platform=>mongoid-9.0.0.0.alpha1, wrapping_libraries=>[{"name"=>"Mongoid", "version"=>"9.0.0.0.alpha1"}], database=>mongoid_test, max_read_retries=>, read_retry_interval=>, srv_uri=>, min_size=>, max_size=>5, wait_timeout=>1, connection_pool=>#<Mongo::Server::ConnectionPool:0x68d58a73>, generation=>1, id=>2}, @server=#<Mongo::Server:0x53e38201>, @resolved_user=#<Mongo::Auth::User:0x5187aa88>, @monitoring=#<Mongo::Monitoring:0x7963d637>, @sasl_supported_mechanisms=["SCRAM-SHA-256", "SCRAM-SHA-1"], @id=2, @app_metadata=#<Mongo::Server::AppMetadata:0x69dc9c8c>> but has already been received by #<Mongo::Server::Connection:0x30dc3991>
# ./lib/mongoid/contextual/mongo.rb:975:in `retrieve_nth_to_last_with_limit'
# ./lib/mongoid/contextual/mongo.rb:597:in `last'
# ./spec/mongoid/contextual/mongo_spec.rb:2549:in `block in <main>'
# ./spec/mongoid/contextual/mongo_spec.rb:2618:in `block in <main>'
# ./spec/support/expectations.rb:22:in `block in expect_query'
# ./spec/support/expectations.rb:16:in `expect_query'
# ./spec/mongoid/contextual/mongo_spec.rb:2617:in `block in <main>'
# ./spec/support/macros.rb:77:in `block in query_cache_enabled'
# ./spec/support/macros.rb:76:in `block in query_cache_enabled'
# ./spec/spec_helper.rb:184:in `block in <main>'
# ./spec/spec_helper.rb:184:in `block in <main>'
The text was updated successfully, but these errors were encountered:
https://github.com/tablecheck/mongoid-ultra/actions/runs/4681570675/jobs/8294326933?pr=25
The text was updated successfully, but these errors were encountered: