Skip to content

Commit 953c1af

Browse files
squash
1 parent 5ce0fab commit 953c1af

File tree

2 files changed

+5
-16
lines changed

2 files changed

+5
-16
lines changed

test/integration/causal-consistency/causal_consistency.prose.test.js

Lines changed: 5 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -4,32 +4,22 @@ const { LEGACY_HELLO_COMMAND } = require('../../mongodb');
44

55
const { setupDatabase } = require('../shared');
66
const { expect } = require('chai');
7-
const { skipBrokenAuthTestBeforeEachHook } = require('../../tools/runner/hooks/configuration');
87

98
const ignoredCommands = [LEGACY_HELLO_COMMAND, 'endSessions'];
109
const test = { commands: { started: [], succeeded: [] } };
1110

1211
// TODO(NODE-3882) - properly implement all prose tests and add missing cases 1, 8, 9, 11, 12
13-
describe('Causal Consistency - prose tests', function () {
12+
describe.only('Causal Consistency - prose tests', function () {
1413
before(function () {
1514
return setupDatabase(this.configuration);
1615
});
1716

18-
beforeEach(
19-
skipBrokenAuthTestBeforeEachHook({
20-
skippedTests: [
21-
'2. The first read in a causally consistent session must not send afterClusterTime to the server',
22-
'case: successful read with causal consistency',
23-
'case: second operation is findOne',
24-
'case: successful insert',
25-
'6. A read operation in a ClientSession that is not causally consistent should not include the afterClusterTime parameter in the command sent to the server'
26-
]
27-
})
28-
);
29-
3017
beforeEach(function () {
3118
test.commands = { started: [], succeeded: [] };
32-
test.client = this.configuration.newClient({ w: 1 }, { maxPoolSize: 1, monitorCommands: true });
19+
test.client = this.configuration.newClient(
20+
{ w: 1 },
21+
{ maxPoolSize: 1, monitorCommands: true, __skipPingOnConnect: true }
22+
);
3323
test.client.on('commandStarted', event => {
3424
if (ignoredCommands.indexOf(event.commandName) === -1) test.commands.started.push(event);
3525
});

test/integration/connection-monitoring-and-pooling/connection.test.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ import {
2121
Topology
2222
} from '../../mongodb';
2323
import * as mock from '../../tools/mongodb-mock/index';
24-
import { skipBrokenAuthTestBeforeEachHook } from '../../tools/runner/hooks/configuration';
2524
import { processTick, sleep } from '../../tools/utils';
2625
import { assert as test, setupDatabase } from '../shared';
2726

0 commit comments

Comments
 (0)