Skip to content

Commit 6cae4b4

Browse files
authored
test(NODE-4270): convert command monitoring tests to unified format (#3276)
1 parent f8e7301 commit 6cae4b4

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

43 files changed

+2923
-2737
lines changed

test/integration/command-monitoring/command_monitoring.spec.test.js

Lines changed: 0 additions & 284 deletions
This file was deleted.
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
import * as path from 'path';
2+
3+
import { loadSpecTests } from '../../spec';
4+
import { runUnifiedSuite } from '../../tools/unified-spec-runner/runner';
5+
6+
// This is skipped because our command monitoring happens at the connection
7+
// level and is using the server reply for the single insert that the bulk
8+
// performed since it was only one document in the test. The test expectation
9+
// is that we are using the bulk write result which was returned to the user
10+
// as the reply in the command succeeded event instead of our raw reply from
11+
// the server. There's nothing we can change here.
12+
const SKIP = ['A successful unordered bulk write with an unacknowledged write concern'];
13+
14+
describe('Command Monitoring Spec (unified)', () => {
15+
runUnifiedSuite(loadSpecTests(path.join('command-monitoring', 'unified')), SKIP);
16+
});

0 commit comments

Comments
 (0)