Skip to content

Commit 8a3bab7

Browse files
authored
test(NODE-3713): skip/fix failing evergreen tests (#3069)
1 parent 55d1c5f commit 8a3bab7

File tree

11 files changed

+27
-14
lines changed

11 files changed

+27
-14
lines changed

.evergreen/config.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ functions:
118118
type: test
119119
params:
120120
working_dir: src
121-
timeout_secs: 60
121+
timeout_secs: 300
122122
script: |
123123
${PREPARE_SHELL}
124124
@@ -186,7 +186,7 @@ functions:
186186
type: test
187187
params:
188188
working_dir: src
189-
timeout_secs: 60
189+
timeout_secs: 300
190190
script: |
191191
${PREPARE_SHELL}
192192

.evergreen/config.yml.in

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ functions:
138138
type: test
139139
params:
140140
working_dir: "src"
141-
timeout_secs: 60
141+
timeout_secs: 300
142142
script: |
143143
${PREPARE_SHELL}
144144

@@ -210,7 +210,7 @@ functions:
210210
type: test
211211
params:
212212
working_dir: src
213-
timeout_secs: 60
213+
timeout_secs: 300
214214
script: |
215215
${PREPARE_SHELL}
216216

test/functional/connections_stepdown.test.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,9 @@ function expectPoolWasNotCleared(initialCount) {
2626
return count => expect(count).to.equal(initialCount);
2727
}
2828

29-
describe('Connections survive primary step down', function () {
29+
// TODO: NODE-3819: Unskip flaky MacOS tests.
30+
const maybeDescribe = process.platform === 'darwin' ? describe.skip : describe;
31+
maybeDescribe('Connections survive primary step down', function () {
3032
let client;
3133
let checkClient;
3234
let db;

test/functional/cursorstream.test.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,9 @@ describe('Cursor Streams', function () {
207207
}
208208
});
209209

210-
it('should stream documents across getMore command and count correctly', {
210+
// TODO: NODE-3819: Unskip flaky MacOS tests.
211+
const maybeIt = process.platform === 'darwin' ? it.skip : it;
212+
maybeIt('should stream documents across getMore command and count correctly', {
211213
metadata: {
212214
requires: { topology: ['single', 'replicaset', 'sharded', 'ssl', 'heap', 'wiredtiger'] }
213215
},

test/functional/examples/change_streams.test.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,9 @@
44
const setupDatabase = require('../shared').setupDatabase;
55
const expect = require('chai').expect;
66

7-
describe('examples(change-stream):', function () {
7+
// TODO: NODE-3819: Unskip flaky MacOS/Windows tests.
8+
const maybeDescribe = process.platform !== 'linux' ? describe.skip : describe;
9+
maybeDescribe('examples(change-stream):', function () {
810
let client;
911
let db;
1012

test/functional/find.test.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1655,7 +1655,8 @@ describe('Find', function () {
16551655
}
16561656
});
16571657

1658-
it('shouldCorrectlyIterateOverCollection', {
1658+
// TODO: NODE-3819: Unskip flaky tests.
1659+
it.skip('shouldCorrectlyIterateOverCollection', {
16591660
metadata: {
16601661
requires: { topology: ['single', 'replicaset', 'sharded', 'ssl', 'heap', 'wiredtiger'] }
16611662
},

test/functional/unit-sdam/monitoring.test.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,8 @@ describe('monitoring', function () {
2424
return mock.createServer().then(server => (mockServer = server));
2525
});
2626

27-
it('should record roundTripTime', function (done) {
27+
// TODO: NODE-3819: Unskip flaky tests.
28+
it.skip('should record roundTripTime', function (done) {
2829
mockServer.setMessageHandler(request => {
2930
const doc = request.document;
3031
if (isHello(doc)) {

test/integration/change-streams/change_stream.test.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -509,7 +509,9 @@ describe('Change Streams', function () {
509509
}
510510
});
511511

512-
it('should cache the change stream resume token using promises', {
512+
// TODO: NODE-3819: Unskip flaky MacOS tests.
513+
const maybeIt = process.platform === 'darwin' ? it.skip : it;
514+
maybeIt('should cache the change stream resume token using promises', {
513515
metadata: { requires: { topology: 'replicaset', mongodb: '>=3.6' } },
514516
test: function () {
515517
const configuration = this.configuration;

test/integration/change-streams/change_streams.spec.test.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,9 @@ describe('Change Streams Spec - Unified', function () {
1212
runUnifiedSuite(loadSpecTests(path.join('change-streams', 'unified')));
1313
});
1414

15-
describe('Change Stream Spec - v1', function () {
15+
// TODO: NODE-3819: Unskip flaky MacOS tests.
16+
const maybeDescribe = process.platform === 'darwin' ? describe.skip : describe;
17+
maybeDescribe('Change Stream Spec - v1', function () {
1618
let globalClient;
1719
let ctx;
1820
let events;

test/integration/read-write-concern/write_concern.test.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,8 @@ describe('Write Concern', function () {
8282

8383
after(() => mock.cleanup());
8484

85-
it('should pipe writeConcern from client down to API call', function () {
85+
// TODO: NODE-3816
86+
it.skip('should pipe writeConcern from client down to API call', function () {
8687
server.setMessageHandler(request => {
8788
if (request.document && request.document[LEGACY_HELLO_COMMAND]) {
8889
return request.reply(mock.HELLO);

test/manual/kerberos.test.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ describe('Kerberos', function () {
7272
client.connect(function (err) {
7373
expect(err).to.exist;
7474
expect(err.message).to.match(
75-
/(Error from KDC: LOOKING_UP_SERVER)|(not found in Kerberos database)/
75+
/(Error from KDC: LOOKING_UP_SERVER)|(not found in Kerberos database)|(UNKNOWN_SERVER)/
7676
);
7777
done();
7878
});
@@ -85,7 +85,7 @@ describe('Kerberos', function () {
8585
client.connect(function (err) {
8686
expect(err).to.exist;
8787
expect(err.message).to.match(
88-
/(Error from KDC: LOOKING_UP_SERVER)|(not found in Kerberos database)/
88+
/(Error from KDC: LOOKING_UP_SERVER)|(not found in Kerberos database)|(UNKNOWN_SERVER)/
8989
);
9090
done();
9191
});

0 commit comments

Comments
 (0)