Uploaded image for project: 'PHP Driver: Extension'
  1. PHP Driver: Extension
  2. PHPC-1344

Make command cursor getMore tests less fragile

    • Type: Icon: Task Task
    • Resolution: Unresolved
    • Priority: Icon: Minor - P4 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]
      

      See: https://evergreen.mongodb.com/task/mongo_php_driver_mongo_40_php5__versions~latest_php_versions~5.6_os_php5~ubuntu1604_test_test_replicaset_4a8a55ae5abee73c41fb0d4d6b5602632b7d14e1_19_02_28_20_30_39/0

            Assignee:
            Unassigned Unassigned
            Reporter:
            jmikola@mongodb.com Jeremy Mikola
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: