Make ChangeStreamOperation tests more resilient

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Fixed
    • Priority: Major - P3
    • 3.12.5, 4.0.4, 4.1.0
    • Affects Version/s: None
    • Component/s: Test Coverage
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      ChangeStreamOperationSpecification tests fail occasionally because they assume that expected documents will be returned by the server in a single batch, even though the server makes no such guarantees (and in practice, does not behave consistently in this regard in single-sharded clusters).

      The tests should be made more resilient by removing the assumption about single batches and instead combining multiple batches until the expected number of change stream documents have been received.

            Assignee:
            Jeffrey Yemin
            Reporter:
            Jeffrey Yemin
            None
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: