Fix flaky change streams test

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Fixed
    • Priority: Major - P3
    • 9.0.0-rc0
    • Affects Version/s: None
    • Component/s: Change streams
    • None
    • Query Execution
    • Fully Compatible
    • QE 2026-05-25
    • 200
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      The test asserts that opening a change stream on a view fails with `CommandNotSupportedOnView`. This normally works fine, but when running the test with all feature flags enabled, it will implicitly use a v2 change stream. In the sharded collection passthroughs, this may cause the change stream to receive a "future cluster time" response instead of the expected failure.
      The fix here is to wrap the assertion into an `assert.soon()`.

            Assignee:
            Jan Steemann
            Reporter:
            Jan Steemann
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: