Skip to content

Commit

Permalink
chore: skip on node 22.7.0
Browse files Browse the repository at this point in the history
  • Loading branch information
nbbeeken committed Sep 6, 2024
1 parent 3fccd97 commit bb2c651
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
6 changes: 6 additions & 0 deletions test/integration/crud/insert.test.js
Original file line number Diff line number Diff line change
@@ -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');
Expand Down Expand Up @@ -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;
Expand Down
6 changes: 6 additions & 0 deletions test/integration/crud/unicode.test.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
'use strict';
const semver = require('semver');
const { assert: test, setupDatabase } = require('../shared');
const { expect } = require('chai');

Expand All @@ -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) {
Expand Down

0 comments on commit bb2c651

Please sign in to comment.