Skip to content

Commit b133f86

Browse files
fix failing tests
1 parent 90a3e78 commit b133f86

File tree

2 files changed

+16
-14
lines changed

2 files changed

+16
-14
lines changed

test/integration/collection-management/collection.test.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -451,7 +451,6 @@ describe('Collection', function () {
451451
});
452452

453453
afterEach(async function () {
454-
await coll.drop();
455454
await client.close();
456455
sinon.restore();
457456
});

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

Lines changed: 16 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -145,19 +145,22 @@ describe('Connection', function () {
145145
}
146146
});
147147

148-
it('supports fire-and-forget messages', async function () {
149-
const options: ConnectionOptions = {
150-
...commonConnectOptions,
151-
connectionType: Connection,
152-
...this.configuration.options,
153-
metadata: makeClientMetadata({ driverInfo: {} }),
154-
extendedMetadata: addContainerMetadata(makeClientMetadata({ driverInfo: {} }))
155-
};
156-
157-
const conn = await connect(options);
158-
const readSpy = sinon.spy(conn, 'readMany');
159-
await conn.command(ns('$admin.cmd'), { ping: 1 }, { moreToCome: true });
160-
expect(readSpy).to.not.have.been.called;
148+
it('supports fire-and-forget messages', {
149+
metadata: { requires: { apiVersion: false, topology: '!load-balanced' } },
150+
test: async function () {
151+
const options: ConnectionOptions = {
152+
...commonConnectOptions,
153+
connectionType: Connection,
154+
...this.configuration.options,
155+
metadata: makeClientMetadata({ driverInfo: {} }),
156+
extendedMetadata: addContainerMetadata(makeClientMetadata({ driverInfo: {} }))
157+
};
158+
159+
const conn = await connect(options);
160+
const readSpy = sinon.spy(conn, 'readMany');
161+
await conn.command(ns('$admin.cmd'), { ping: 1 }, { moreToCome: true });
162+
expect(readSpy).to.not.have.been.called;
163+
}
161164
});
162165
});
163166

0 commit comments

Comments
 (0)