In the "FLE: latest ruby-3.1" variant, the "spec/integration/snapshot_query_examples_spec.rb" tests fail due to an aggregate command unexpectedly returning nil. This only happens in evergreen; when run locally with the same configuration, the tests pass.
Unable to find source-code formatter for language: text. Available languages are: actionscript, ada, applescript, bash, c, c#, c++, cpp, css, erlang, go, groovy, haskell, html, java, javascript, js, json, lua, none, nyan, objc, perl, php, python, r, rainbow, ruby, scala, sh, sql, swift, visualbasic, xml, yaml
Failure/Error: adoptable_pets_count = client['cats'].aggregate([ { "$match": { "adoptable": true } }, { "$count": "adoptable_cats_count" } ], session: session).first["adoptable_cats_count"] NoMethodError: undefined method `[]' for nil:NilClass ], session: session).first["adoptable_cats_count"] ^^^^^^^^^^^^^^^^^^^^^^^^ # ./spec/integration/snapshot_query_examples_spec.rb:56:in `block (4 levels) in <top (required)>' # ./lib/mongo/client.rb:1014:in `start_session' # ./spec/integration/snapshot_query_examples_spec.rb:52:in `block (3 levels) in <top (required)>' # ./spec/lite_spec_helper.rb:141:in `block (3 levels) in <top (required)>' # ./spec/lite_spec_helper.rb:140:in `block (2 levels) in <top (required)>' # ./spec/lite_spec_helper.rb:120:in `block (2 levels) in <top (required)>'