Skip to content

Commit a9e5f8c

Browse files
committed
Correctly use Server method in server-executeQuery-010.phpt
The original test incorrectly called the Manager method. This dates back to 87fbd00.
1 parent 1e55f8d commit a9e5f8c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/server/server-executeQuery-010.phpt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,14 +24,14 @@ $secondary = $manager->selectServer($secondaryRp);
2424

2525
echo "Testing primary:\n";
2626
$query = new MongoDB\Driver\Query(['x' => 3], ['projection' => ['y' => 1]]);
27-
$cursor = $manager->executeQuery(NS, $query, $primaryRp);
27+
$cursor = $primary->executeQuery(NS, $query, $primaryRp);
2828

2929
echo "is_primary: ", $cursor->getServer()->isPrimary() ? 'true' : 'false', "\n";
3030
echo "is_secondary: ", $cursor->getServer()->isSecondary() ? 'true' : 'false', "\n\n";
3131

3232
echo "Testing secondary:\n";
3333
$query = new MongoDB\Driver\Query(['x' => 3], ['projection' => ['y' => 1]]);
34-
$cursor = $manager->executeQuery(NS, $query, $secondaryRp);
34+
$cursor = $secondary->executeQuery(NS, $query, $secondaryRp);
3535

3636
echo "is_primary: ", $cursor->getServer()->isPrimary() ? 'true' : 'false', "\n";
3737
echo "is_secondary: ", $cursor->getServer()->isSecondary() ? 'true' : 'false', "\n\n";

0 commit comments

Comments
 (0)