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

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

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Unresolved
    • Icon: Major - P3 Major - P3
    • None
    • None
    • None
    • None
    • Service Arch

    Description

      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?

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated: