Uploaded image for project: 'MongoDB Shell'
  1. MongoDB Shell
  2. MONGOSH-589

Flaky tests due to prompt detection

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Minor - P4 Minor - P4
    • 0.12.0
    • Affects Version/s: None
    • Component/s: Testing
    • Labels:
      None
    • Not Needed
    • Iteration Z, Iteration Athens

      The detection of shell output / the shell prompt in tests is flaky as sometimes multiple prompt starts are generated in a single output line causing the tests to fail.

      Example output:

      [2021/02/09 17:37:04.852]   1) e2e
      [2021/02/09 17:37:04.852]        Node.js builtin APIs in the shell
      [2021/02/09 17:37:04.852]          require() searches the current working directory according to Node.js rules:
      [2021/02/09 17:37:04.852]      AssertionError: expected '> > A\n> ' to match /^A$/m
      [2021/02/09 17:37:04.852]       at Context.<anonymous> (Z:\data\mci\072b060927fa32230b9d7502c9a74f80\src\packages\cli-repl\test\e2e.spec.ts:472:25)
      

            Assignee:
            anna.henningsen@mongodb.com Anna Henningsen
            Reporter:
            michael.rose@mongodb.com Michael Rose (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: