Skip to content

Commit 7b59d21

Browse files
comments
1 parent d2dffa2 commit 7b59d21

File tree

3 files changed

+7
-14
lines changed

3 files changed

+7
-14
lines changed

.evergreen/config.in.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -617,6 +617,9 @@ functions:
617617
export AWS_ACCESS_KEY_ID=${aws_key}
618618
export AWS_SECRET_ACCESS_KEY=${aws_secret}
619619
620+
# use Node20
621+
export PATH=/opt/devtools/node20/bin:/opt/dev/tools/bin:$PATH
622+
620623
# Download all the task coverage files.
621624
# NOTE: All coverage files are too large for V8 to handle the resulting call to
622625
# JSON.stringify from within nyc, so with stick to Fermiun to include the

.evergreen/config.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -556,6 +556,9 @@ functions:
556556
export AWS_ACCESS_KEY_ID=${aws_key}
557557
export AWS_SECRET_ACCESS_KEY=${aws_secret}
558558
559+
# use Node20
560+
export PATH=/opt/devtools/node20/bin:/opt/dev/tools/bin:$PATH
561+
559562
# Download all the task coverage files.
560563
# NOTE: All coverage files are too large for V8 to handle the resulting call to
561564
# JSON.stringify from within nyc, so with stick to Fermiun to include the

test/tools/unified-spec-runner/match.ts

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -771,20 +771,7 @@ export function compareLogs(
771771
}
772772

773773
function isMongoCryptError(err): boolean {
774-
if (err.constructor.name === 'MongoCryptError') {
775-
return true;
776-
}
777-
778-
// TODO(NODE-7043): remove special handling for FLE errors in the UTR
779-
if (
780-
err instanceof TypeError &&
781-
err.message.includes(
782-
`csfle "analyze_query" failed: JSON schema keyword 'required' is only allowed with a remote schema`
783-
)
784-
) {
785-
return true;
786-
}
787-
return err.stack.includes('at ClientEncryption');
774+
return err.constructor.name === 'MongoCryptError';
788775
}
789776

790777
export function expectErrorCheck(

0 commit comments

Comments
 (0)