Skip to content

Commit c4b0f72

Browse files
authored
CSHARP-4764: Fix ClientEncryptionProseTests.OnDemandCredentialsTest failure (#1166)
1 parent cf398ef commit c4b0f72

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/MongoDB.Driver.Tests/Specifications/client-side-encryption/prose-tests/ClientEncryptionProseTests.cs

+2-2
Original file line numberDiff line numberDiff line change
@@ -1788,10 +1788,10 @@ void AssertException(Exception ex)
17881788
}
17891789
catch (XunitException)
17901790
{
1791-
// In rare cases, the thrown error is "CryptException exception: AcceessDeniedException". That means you don't have authorization to perform the requested action.
1791+
// In rare cases, the thrown error is "CryptException exception: AccessDeniedException". That means you don't have authorization to perform the requested action.
17921792
// It more or less corresponds to the expected behavior here, but it's unclear why the same scenario triggers different exceptions.
17931793
// However, it looks harmless to slightly update the test assertion to avoid assertion failures on EG.
1794-
AssertInnerEncryptionException<CryptException>(ex, "Error in KMS response. HTTP status=400. Response body=\n{\"__type\":\"AccessDeniedException\"}");
1794+
AssertInnerEncryptionException<CryptException>(ex, "Error in KMS response.", "HTTP status=400.", "\"__type\":\"AccessDeniedException\"");
17951795
}
17961796
}
17971797
break;

0 commit comments

Comments
 (0)