From 1628884f0cef755766420843f1adc056a526b382 Mon Sep 17 00:00:00 2001 From: Neal Beeken Date: Thu, 29 Aug 2024 16:37:46 -0400 Subject: [PATCH] chore: skip on node 22.7.0 --- test/integration/crud/insert.test.js | 6 ++++++ test/integration/crud/unicode.test.js | 6 ++++++ 2 files changed, 12 insertions(+) diff --git a/test/integration/crud/insert.test.js b/test/integration/crud/insert.test.js index f154827d92..c7c212d91d 100644 --- a/test/integration/crud/insert.test.js +++ b/test/integration/crud/insert.test.js @@ -1,4 +1,5 @@ 'use strict'; +const semver = require('semver'); const { assert: test, ignoreNsNotFound, setupDatabase } = require('../shared'); const { format: f } = require('util'); const { expect } = require('chai'); @@ -1680,6 +1681,11 @@ describe('crud - insert', function () { }, test: function (done) { + if (semver.satisfies(process.versions.node, '22.7.0')) { + this.skipReason = 'Node.js 22.7.0 has a UTF-8 encoding bug'; + this.skip(); + } + var regexp = /foobaré/; var configuration = this.configuration; diff --git a/test/integration/crud/unicode.test.js b/test/integration/crud/unicode.test.js index b4332e4afc..ab39df20fb 100644 --- a/test/integration/crud/unicode.test.js +++ b/test/integration/crud/unicode.test.js @@ -1,4 +1,5 @@ 'use strict'; +const semver = require('semver'); const { assert: test, setupDatabase } = require('../shared'); const { expect } = require('chai'); @@ -13,6 +14,11 @@ describe('Unicode', function () { }, test: function (done) { + if (semver.satisfies(process.versions.node, '22.7.0')) { + this.skipReason = 'Node.js 22.7.0 has a UTF-8 encoding bug'; + this.skip(); + } + var configuration = this.configuration; var client = configuration.newClient(configuration.writeConcernMax(), { maxPoolSize: 1 }); client.connect(function (err, client) {