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

Fix test failures executing insert on secondary

    • Type: Icon: Task Task
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 1.6.0alpha3, 1.6.0
    • Affects Version/s: None
    • Component/s: None
    • None

      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========
      

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

              Created:
              Updated:
              Resolved: