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

XMLWordPrintableJSON

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

      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
              Reporter:
              Jeremy Mikola
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated: