Skip to content

Commit c7f81a6

Browse files
committed
test: monitor commands
1 parent acea06c commit c7f81a6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/integration/crud/find_and_modify.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ describe('Collection (#findOneAnd...)', function () {
3636
const started: CommandStartedEvent[] = [];
3737

3838
beforeEach(async function () {
39-
client = this.configuration.newClient({}, { maxPoolSize: 1 });
39+
client = this.configuration.newClient({}, { maxPoolSize: 1, monitorCommands: true });
4040
client.on('commandStarted', function (event) {
4141
if (event.commandName === 'findAndModify') started.push(event);
4242
});

0 commit comments

Comments
 (0)