-
Type: Task
-
Resolution: Unresolved
-
Priority: Minor - P4
-
None
-
Affects Version/s: None
-
Component/s: Tests
-
None
The tests for PHPC-1050 are prone to failing at odd times. Both of these insert documents while iterating through a change stream. Investigate whether we can make these tests less fragile.
TEST 1352/1749 [tests/cursor/bug1050-001.phpt] [2019/02/28 15:54:10.356] ========DIFF======== [2019/02/28 15:54:10.356] 005+ Current position is valid: no [2019/02/28 15:54:10.356] 006+ ===DONE=== [2019/02/28 15:54:10.356] 005- Current position is valid: yes [2019/02/28 15:54:10.356] 006- Operation type: insert [2019/02/28 15:54:10.356] 007- object(stdClass)#%d (%d) { [2019/02/28 15:54:10.356] 008- ["_id"]=> [2019/02/28 15:54:10.356] 009- object(MongoDB\BSON\ObjectId)#%d (%d) { [2019/02/28 15:54:10.356] 010- ["oid"]=> [2019/02/28 15:54:10.356] 011- string(24) "%x" [2019/02/28 15:54:10.356] 012- } [2019/02/28 15:54:10.356] 013- ["x"]=> [2019/02/28 15:54:10.356] 014- int(1) [2019/02/28 15:54:10.356] 015- } [2019/02/28 15:54:10.356] 016- ===DONE=== [2019/02/28 15:54:10.356] ========DONE======== [2019/02/28 15:54:10.356] FAIL PHPC-1050: Command cursor should not invoke getMore at execution [tests/cursor/bug1050-001.phpt] [2019/02/28 15:54:11.877] TEST 1353/1749 [tests/cursor/bug1050-002.phpt] [2019/02/28 15:54:11.877] ========DIFF======== [2019/02/28 15:54:11.877] 006+ Current position is valid: no [2019/02/28 15:54:11.877] 007+ ===DONE=== [2019/02/28 15:54:11.877] 006- Current position is valid: yes [2019/02/28 15:54:11.877] 007- Operation type: insert [2019/02/28 15:54:11.877] 008- object(stdClass)#%d (%d) { [2019/02/28 15:54:11.877] 009- ["_id"]=> [2019/02/28 15:54:11.877] 010- object(MongoDB\BSON\ObjectId)#%d (%d) { [2019/02/28 15:54:11.877] 011- ["oid"]=> [2019/02/28 15:54:11.877] 012- string(24) "%x" [2019/02/28 15:54:11.877] 013- } [2019/02/28 15:54:11.877] 014- ["x"]=> [2019/02/28 15:54:11.877] 015- int(1) [2019/02/28 15:54:11.877] 016- } [2019/02/28 15:54:11.877] 017- ===DONE=== [2019/02/28 15:54:11.877] ========DONE======== [2019/02/28 15:54:11.877] FAIL PHPC-1050: Command cursor should not invoke getMore at execution (rewind omitted) [tests/cursor/bug1050-002.phpt]
- is related to
-
PHPC-1050 Advancing a new command cursor to check for an error may invoke getMore
- Closed