Uploaded image for project: 'Ruby Driver'
  1. Ruby Driver
  2. RUBY-3134

Fix flaky unified/valid-pass test

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Unknown Unknown
    • 2.19.0
    • Affects Version/s: None
    • Component/s: None
    • None

      As part of RUBY-2752 flaky unified tests were added. The following error is observed:

      Unable to find source-code formatter for language: ruby. 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
      1) Unified spec tests - valid pass valid-pass/observeSensitiveCommands.yml hello with speculativeAuthenticate passes
            Failure/Error: raise Error::ResultMismatch, "Event count mismatch: expected #{expected_events.length}, actual #{actual_events.length}\nExpected: #{expected_events}\nActual: #{actual_events}"
            
            Unified::Error::ResultMismatch:
              Event count mismatch: expected 2, actual 0
              Expected: [{"commandStartedEvent"=>{"commandName"=>"hello", "command"=>{"hello"=>{"$$exists"=>false}, "speculativeAuthenticate"=>{"$$exists"=>false}}}}, {"commandSucceededEvent"=>{"commandName"=>"hello", "reply"=>{"isWritablePrimary"=>{"$$exists"=>false}, "speculativeAuthenticate"=>{"$$exists"=>false}}}}]
              Actual: []
            # ./spec/runners/unified/assertions.rb:173:in `block in assert_events'
            # ./spec/runners/unified/assertions.rb:147:in `each'
            # ./spec/runners/unified/assertions.rb:147:in `assert_events'
            # ./spec/runners/unified.rb:101:in `block (5 levels) in define_unified_spec_tests'
            # ./spec/support/macros.rb:12:in `block in config_override'
            # ./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)>'
      

      This ticket is for investigating a fixing this flaky test.

            Assignee:
            neil.shweky@mongodb.com Neil Shweky (Inactive)
            Reporter:
            neil.shweky@mongodb.com Neil Shweky (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: