Skip to content

Commit 88b5284

Browse files
authored
DRIVERS-3106 revise expected error (#1818)
The legacy test used `errorContains`. The migrated unified test used `isClientError` (copying existing patterns in unified tests). The expected error may come from mongocryptd and not be considered a client error. Revert to using `errorContains`.
1 parent 6689929 commit 88b5284

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

source/client-side-encryption/tests/unified/localSchema.json

Lines changed: 2 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

source/client-side-encryption/tests/unified/localSchema.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,4 +99,5 @@ tests:
9999
arguments:
100100
document: &doc0 { _id: 1, encrypted_string: "string0" }
101101
expectError:
102-
isClientError: true
102+
isError: true
103+
errorContains: "JSON schema keyword 'required' is only allowed with a remote schema"

0 commit comments

Comments
 (0)