Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-69521

Add a feature like the jstest `assert.soon()` to C++ unit tests

    • Type: Icon: Improvement Improvement
    • Resolution: Unresolved
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • Labels:
      None
    • Service Arch

      There are some C++ unit tests that need to check that a set of values eventually converge to another set of values. One example is the ticketholder test that needs to wait until a certain condition is met. In other suites they've had to implement their own version of assertSoon in their fixtures.

      Considering that there is a method in the JS tests called assert.soon() that checks the given criteria repeatedly until it passes, would it be possible to add something similar to C++ unit tests?

            Assignee:
            backlog-server-servicearch [DO NOT USE] Backlog - Service Architecture
            Reporter:
            jordi.olivares-provencio@mongodb.com Jordi Olivares Provencio
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated: