-
Type: Build Failure
-
Resolution: Fixed
-
Priority: Unknown
-
Affects Version/s: None
-
Component/s: None
-
None
Failing on GH actions:
1) MongoDB\Tests\UnifiedSpecTests\UnifiedSpecTest::testChangeStreams with data set "change-streams/change-streams-showExpandedEvents: when showExpandedEvents is true, createIndex events are reported" (MongoDB\Tests\UnifiedSpecTests\UnifiedTestCase Object (...)) Failed asserting that expected value matches actual value. Field path "operationType": Failed asserting that two strings are equal. --- Expected +++ Actual @@ @@ -MongoDB\Model\BSONDocument Object &000000002cf7a679000000007c970511 ( - 'operationType' => 'createIndexes' +MongoDB\Model\BSONDocument Object &000000002cf7a644000000007c970511 ( + 'operationType' => 'create'
Debugging this locally, it looks like the changeStream reports the create operation when the test progresses too fast. Introducing an artificial delay fixes the test.
- related to
-
PHPLIB-924 Sync change stream spec tests for updateDescription field
- Closed
-
PHPLIB-914 Spec test "change stream resumes after StaleShardVersion" fails on server version > 6.0
- Closed
- split from
-
DRIVERS-2417 Exclude create events from change stream events when testing showExpandedEvents
- Implementing