Skip to content

Commit 4847be1

Browse files
committed
Use default argument for server selection (which defaults to primary)
1 parent 2c549c8 commit 4847be1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/TransactionTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -425,6 +425,6 @@ public function testRollBackWithoutSession(): void
425425

426426
private function getPrimaryServerType(): int
427427
{
428-
return DB::getMongoClient()->getManager()->selectServer(new ReadPreference(ReadPreference::RP_PRIMARY))->getType();
428+
return DB::getMongoClient()->getManager()->selectServer()->getType();
429429
}
430430
}

0 commit comments

Comments
 (0)