Uploaded image for project: 'PHP Driver: Library'
  1. PHP Driver: Library
  2. PHPLIB-711

isClientError check in unified test runner should unwrap BulkWriteExceptions

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Unknown Unknown
    • 1.10.0
    • Affects Version/s: None
    • Component/s: None
    • Labels:
      None

      Per PHPC-1960, not all BulkWriteExceptions are server-side errors despite the class inheriting ServerException. The unified test runner should check whether BulkWriteException is proxying a previous exception before evaluating code, codeName, and isClientError checks in MongoDB\Tests\UnifiedSpecTests\ExpectedError::assert().

            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: