Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
M
mongo-php-library
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
sinan
mongo-php-library
Commits
32bade47
Unverified
Commit
32bade47
authored
Aug 02, 2019
by
Andreas Braun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
PHPLIB-461: Fix ChangeStream tests on sharded clusters
parent
a42e3479
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
127 additions
and
66 deletions
+127
-66
DocumentationExamplesTest.php
tests/DocumentationExamplesTest.php
+4
-0
FunctionalTestCase.php
tests/FunctionalTestCase.php
+0
-3
WatchFunctionalTest.php
tests/Operation/WatchFunctionalTest.php
+123
-63
No files found.
tests/DocumentationExamplesTest.php
View file @
32bade47
...
...
@@ -935,6 +935,10 @@ class DocumentationExamplesTest extends FunctionalTestCase
{
$this
->
skipIfChangeStreamIsNotSupported
();
if
(
$this
->
isShardedCluster
())
{
$this
->
markTestSkipped
(
'Test does not apply on sharded clusters: need more than a single getMore call on the change stream.'
);
}
$db
=
new
Database
(
$this
->
manager
,
$this
->
getDatabaseName
());
$db
->
dropCollection
(
'inventory'
);
$db
->
createCollection
(
'inventory'
);
...
...
tests/FunctionalTestCase.php
View file @
32bade47
...
...
@@ -336,9 +336,6 @@ abstract class FunctionalTestCase extends TestCase
if
(
!
$this
->
isShardedClusterUsingReplicasets
())
{
$this
->
markTestSkipped
(
'$changeStream is only supported with replicasets'
);
}
// Temporarily skip tests because of an issue with change streams in the driver
$this
->
markTestSkipped
(
'$changeStreams currently don\'t on replica sets'
);
break
;
case
Server
::
TYPE_RS_PRIMARY
:
...
...
tests/Operation/WatchFunctionalTest.php
View file @
32bade47
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment