Skip to content

Commit f3b47c0

Browse files
temp
1 parent 89ed6a3 commit f3b47c0

File tree

7 files changed

+11
-15
lines changed

7 files changed

+11
-15
lines changed

src/mongo_client.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -628,7 +628,7 @@ export class MongoClient extends TypedEventEmitter<MongoClientEvents> implements
628628
this,
629629
new RunAdminCommandOperation(
630630
{ endSessions },
631-
{ readPreference: ReadPreference.primaryPreferred, writeConcern: { w: 0 } }
631+
{ readPreference: ReadPreference.primaryPreferred, moreToCome: true }
632632
)
633633
);
634634
} catch (error) {

src/operations/run_command.ts

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ export class RunAdminCommandOperation<T = Document> extends AbstractOperation<T>
5252
constructor(
5353
public command: Document,
5454
public override options: RunCommandOptions & {
55-
writeConcern?: WriteConcern;
55+
moreToCome?: boolean;
5656
bypassPinningCheck?: boolean;
5757
}
5858
) {
@@ -73,8 +73,4 @@ export class RunAdminCommandOperation<T = Document> extends AbstractOperation<T>
7373
});
7474
return res;
7575
}
76-
}
77-
78-
defineAspects(RunAdminCommandOperation, [
79-
Aspect.WRITE_OPERATION
80-
]);
76+
}

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -551,15 +551,15 @@ describe('Collection', function () {
551551
}
552552
}
553553

554-
it.only('isCapped should return false for uncapped collections', async function () {
554+
it('isCapped should return false for uncapped collections', async function () {
555555
await testCapped(configuration, {
556556
config: configuration,
557557
collName: 'uncapped',
558558
opts: { capped: false }
559559
});
560560
});
561561

562-
it.only('isCapped should return false for collections instantiated without specifying capped', async function () {
562+
it('isCapped should return false for collections instantiated without specifying capped', async function () {
563563
await testCapped(configuration, { config: configuration, collName: 'uncapped2', opts: {} });
564564
});
565565

test/integration/crud/misc_cursors.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1496,7 +1496,7 @@ describe('Cursor', function () {
14961496
}
14971497
});
14981498

1499-
it.only('does not auto destroy streams', function (done) {
1499+
it('does not auto destroy streams', function (done) {
15001500
const docs = [];
15011501

15021502
for (var i = 0; i < 10; i++) {

test/integration/read-write-concern/write_concern.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ import {
1515
import * as mock from '../../tools/mongodb-mock/index';
1616
import { filterForCommands } from '../shared';
1717

18-
describe.only('Write Concern', function () {
18+
describe('Write Concern', function () {
1919
context('when the WriteConcern is set in the uri', function () {
2020
let client;
2121
const events: CommandStartedEvent[] = [];
@@ -173,7 +173,7 @@ describe.only('Write Concern', function () {
173173
});
174174
});
175175

176-
describe('fire-and-forget protocol', function () {
176+
describe.only('fire-and-forget protocol', function () {
177177
context('when writeConcern = 0 and OP_MSG is used', function () {
178178
const writeOperations: { name: string; command: any; expectedReturnVal: any }[] = [
179179
{

test/unit/cmap/connection.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ describe('new Connection()', function () {
2828

2929
before(() => mock.createServer().then(s => (server = s)));
3030

31-
it('supports fire-and-forget messages', async function () {
31+
it.only('supports fire-and-forget messages', async function () {
3232
server.setMessageHandler(request => {
3333
const doc = request.document;
3434
if (isHello(doc)) {
@@ -47,7 +47,7 @@ describe('new Connection()', function () {
4747

4848
const conn = await connect(options);
4949
const readSpy = sinon.spy(conn, 'readMany');
50-
await conn.command(ns('$admin.cmd'), { ping: 1 }, { writeConcern: { w: 0 } });
50+
await conn.command(ns('$admin.cmd'), { ping: 1 }, { moreToCome: true });
5151
expect(readSpy).to.not.have.been.called;
5252
});
5353

test/unit/collection.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ describe('Collection', function () {
1515
});
1616

1717
context('#createIndex', () => {
18-
it('should error when createIndex fails', function (done) {
18+
it.only('should error when createIndex fails', function (done) {
1919
const ERROR_RESPONSE = {
2020
ok: 0,
2121
errmsg:

0 commit comments

Comments
 (0)