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

Fix test failures executing insert on secondary

    XMLWordPrintable

    Details

    • Type: Task
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.6.0, 1.6.0alpha3
    • Labels:
      None

      Description

      The following tests started failing after upgrading libmongoc to 1.15-dev:

      • tests/server/server-executeBulkWrite-004.phpt
      • tests/server/server-executeBulkWrite-007.phpt

      Both of these tests rightfully expect a RuntimeException with the message "not master". After the upgrade, no exception is thrown:

      ========DIFF========
      001+ FAILED: Expected MongoDB\Driver\Exception\RuntimeException thrown, but no exception thrown!
      002+ 
      003+ FAILED: Expected MongoDB\Driver\Exception\RuntimeException thrown, but no exception thrown!
      004+ 
      005+ FAILED: Expected MongoDB\Driver\Exception\RuntimeException thrown, but no exception thrown!
      006+ 
      001- OK: Got MongoDB\Driver\Exception\RuntimeException
      002- not master
      003- OK: Got MongoDB\Driver\Exception\RuntimeException
      004- not master
      005- OK: Got MongoDB\Driver\Exception\RuntimeException
      006- not master
      ========DONE========
      

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: