Skip to content

Commit

Permalink
chore(NODE-6397): change node-latest task to use latest node version (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
nbbeeken authored Sep 30, 2024
1 parent 3f9d243 commit 85f7dcf
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 3 deletions.
5 changes: 3 additions & 2 deletions .evergreen/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4708,7 +4708,7 @@ buildvariants:
display_name: rhel8 Node Latest
run_on: rhel80-large
expansions:
NODE_LTS_VERSION: 20
NODE_LTS_VERSION: latest
CLIENT_ENCRYPTION: true
tasks:
- test-latest-server
Expand Down Expand Up @@ -4749,9 +4749,10 @@ buildvariants:
- test-latest-load-balanced
- test-auth-kerberos
- test-auth-ldap
- test-socks5
- test-socks5-csfle
- test-socks5-tls
- test-zstd-compression
- test-snappy-compression
- test-tls-support-latest
- test-tls-support-8.0
- test-tls-support-7.0
Expand Down
2 changes: 1 addition & 1 deletion .evergreen/generate_evergreen_tasks.js
Original file line number Diff line number Diff line change
Expand Up @@ -395,7 +395,7 @@ for (const {
name: `${osName}-node-latest`,
display_name: `${osDisplayName} Node Latest`,
run_on,
expansions: { NODE_LTS_VERSION: LATEST_LTS },
expansions: { NODE_LTS_VERSION: 'latest' },
tasks: tasks.map(({ name }) => name)
};
if (clientEncryption) {
Expand Down
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 85f7dcf

Please sign in to comment.