Skip to content

Commit 597e9c1

Browse files
committed
test(NODE-7179): migrate test/integration/server-selection/*
1 parent 2344d99 commit 597e9c1

4 files changed

Lines changed: 6 additions & 14 deletions

test/integration/server-selection/operation_count.test.ts

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,8 @@
11
import { expect } from 'chai';
22
import * as sinon from 'sinon';
33

4-
import {
5-
type AbstractCursor,
6-
type Collection,
7-
ConnectionPool,
8-
type MongoClient
9-
} from '../../mongodb';
4+
import { type AbstractCursor, type Collection, type MongoClient } from '../../../src';
5+
import { ConnectionPool } from '../../../src/cmap/connection_pool';
106
import { type FailCommandFailPoint } from '../../tools/utils';
117

128
const testMetadata: MongoDBMetadataUI = {

test/integration/server-selection/server_selection.prose.operation_count.test.ts

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,7 @@
11
import { expect } from 'chai';
22

3-
import {
4-
type Collection,
5-
type CommandStartedEvent,
6-
HostAddress,
7-
type MongoClient
8-
} from '../../mongodb';
3+
import { type Collection, type CommandStartedEvent, type MongoClient } from '../../../src';
4+
import { HostAddress } from '../../../src/utils';
95
import { waitUntilPoolsFilled } from '../../tools/utils';
106

117
const failPoint = {

test/integration/server-selection/server_selection.prose.sharded_retryable_reads.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { expect } from 'chai';
22

3-
import type { CommandFailedEvent, CommandSucceededEvent } from '../../mongodb';
3+
import type { CommandFailedEvent, CommandSucceededEvent } from '../../../src';
44

55
const TEST_METADATA = { requires: { mongodb: '>=4.2.9', topology: 'sharded' } };
66
const FAIL_COMMAND = {

test/integration/server-selection/server_selection.prose.sharded_retryable_writes.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { expect } from 'chai';
22

3-
import type { CommandFailedEvent, CommandSucceededEvent } from '../../mongodb';
3+
import type { CommandFailedEvent, CommandSucceededEvent } from '../../../src';
44

55
const TEST_METADATA = { requires: { mongodb: '>=4.3.1', topology: 'sharded' } };
66
const FAIL_COMMAND = {

0 commit comments

Comments
 (0)