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

Assert error code instead of string in Server::executeBulkWrite tests

    • Type: Icon: Task Task
    • Resolution: Unresolved
    • Priority: Icon: Minor - P4 Minor - P4
    • None
    • Affects Version/s: None
    • Component/s: Tests

      In PHPC-1756, server-executeBulkWrite-004.phpt and server-executeBulkWrite-007.phpt were changed to expect "not (primary|master)" to account for variations in server versions. We might be able to avoid string matching by changing the exception to ServerException and asserting the numeric error code, provide it's reliable for all 3.0+ servers.

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

              Created:
              Updated: