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
7e461087
Unverified
Commit
7e461087
authored
Jul 30, 2019
by
Andreas Braun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Create manager with multiple mongos nodes when tests require it
parent
d5b1156d
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
4 deletions
+3
-4
RetryableWritesSpecTest.php
tests/SpecTests/RetryableWritesSpecTest.php
+2
-2
TransactionsSpecTest.php
tests/SpecTests/TransactionsSpecTest.php
+1
-2
No files found.
tests/SpecTests/RetryableWritesSpecTest.php
View file @
7e461087
...
@@ -3,6 +3,7 @@
...
@@ -3,6 +3,7 @@
namespace
MongoDB\Tests\SpecTests
;
namespace
MongoDB\Tests\SpecTests
;
use
LogicException
;
use
LogicException
;
use
MongoDB\Driver\Manager
;
use
stdClass
;
use
stdClass
;
/**
/**
...
@@ -22,9 +23,8 @@ class RetryableWritesSpecTest extends FunctionalTestCase
...
@@ -22,9 +23,8 @@ class RetryableWritesSpecTest extends FunctionalTestCase
*/
*/
public
function
testRetryableWrites
(
stdClass
$test
,
array
$runOn
=
null
,
array
$data
)
public
function
testRetryableWrites
(
stdClass
$test
,
array
$runOn
=
null
,
array
$data
)
{
{
// TODO: Revise this once a test environment with multiple mongos nodes is available (see: PHPLIB-430)
if
(
isset
(
$test
->
useMultipleMongoses
)
&&
$test
->
useMultipleMongoses
&&
$this
->
isShardedCluster
())
{
if
(
isset
(
$test
->
useMultipleMongoses
)
&&
$test
->
useMultipleMongoses
&&
$this
->
isShardedCluster
())
{
$this
->
ma
rkTestSkipped
(
'"useMultipleMongoses" is not supported'
);
$this
->
ma
nager
=
new
Manager
(
static
::
getUri
(
true
)
);
}
}
if
(
isset
(
$runOn
))
{
if
(
isset
(
$runOn
))
{
...
...
tests/SpecTests/TransactionsSpecTest.php
View file @
7e461087
...
@@ -123,9 +123,8 @@ class TransactionsSpecTest extends FunctionalTestCase
...
@@ -123,9 +123,8 @@ class TransactionsSpecTest extends FunctionalTestCase
$this
->
markTestIncomplete
(
self
::
$incompleteTests
[
$this
->
dataDescription
()]);
$this
->
markTestIncomplete
(
self
::
$incompleteTests
[
$this
->
dataDescription
()]);
}
}
// TODO: Revise this once a test environment with multiple mongos nodes is available (see: PHPLIB-430)
if
(
isset
(
$test
->
useMultipleMongoses
)
&&
$test
->
useMultipleMongoses
&&
$this
->
isShardedCluster
())
{
if
(
isset
(
$test
->
useMultipleMongoses
)
&&
$test
->
useMultipleMongoses
&&
$this
->
isShardedCluster
())
{
$this
->
ma
rkTestIncomplete
(
'"useMultipleMongoses" is not supported'
);
$this
->
ma
nager
=
new
Manager
(
static
::
getUri
(
true
)
);
}
}
if
(
isset
(
$runOn
))
{
if
(
isset
(
$runOn
))
{
...
...
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