Fix libmongocrypt wrapper test failure

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Fixed
    • Priority: Major - P3
    • 1.2.0
    • Affects Version/s: None
    • Component/s: None
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      CDRIVER-3125 fixed a key caching bug that happened when keyAltName was specified. As a result, the assertion on https://github.com/mongodb/mongo-go-driver/blob/master/x/mongo/driver/mongocrypt/mongocrypt_test.go#L356 fails because libmongocrypt caches the key and does not enter the NeedMongoKeys state again. Fix this by checking for the Ready state immediately.

      While fixing this, another error was found: an error message in libmongocrypt was updated, causing 2 spec tests to fail. The work for this ticket should also include syncing spec test files to pull in changes from commit c12dc705f7a75be056fe88525731363e5372c385 in the specs repo.

            Assignee:
            Divjot Arora (Inactive)
            Reporter:
            Divjot Arora (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: