Uploaded image for project: 'Go Driver'
  1. Go Driver
  2. GODRIVER-1254

Fix libmongocrypt wrapper test failure

    XMLWordPrintable

    Details

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

      Description

      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.

        Attachments

          Activity

            People

            Assignee:
            divjot.arora Divjot Arora
            Reporter:
            divjot.arora Divjot Arora
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: