Skip to content

Commit 343f6e2

Browse files
committed
PHPC-1029: Remove unused Command options in test
Using $changeStream in an aggregation pipeline implies a tailable/awaitData cursor. Unlike Query, Command does not take these options.
1 parent a464e4e commit 343f6e2

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

tests/command/cursor-tailable-001.phpt

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
--TEST--
2-
MongoDB\Driver\Cursor tailable iteration with awaitData and maxAwaitTimeMS options
2+
MongoDB\Driver\Command tailable cursor iteration with maxAwaitTimeMS option
33
--SKIPIF--
44
<?php require __DIR__ . "/../utils/basic-skipif.inc"; ?>
55
<?php NEEDS('REPLICASET'); CLEANUP(REPLICASET); ?>
@@ -27,8 +27,6 @@ $command = new MongoDB\Driver\Command([
2727
'pipeline' => $pipeline,
2828
'cursor' => ['batchSize' => 0],
2929
], [
30-
'tailable' => true,
31-
'awaitData' => true,
3230
'maxAwaitTimeMS' => 100,
3331
]);
3432

0 commit comments

Comments
 (0)