PHPLIB-490: Update spec tests for primary stepdown

parent f9493e7e
...@@ -110,6 +110,10 @@ class PrimaryStepDownSpecTest extends FunctionalTestCase ...@@ -110,6 +110,10 @@ class PrimaryStepDownSpecTest extends FunctionalTestCase
// Verify that the connection pool has been cleared // Verify that the connection pool has been cleared
$this->assertSame($totalConnectionsCreated + 1, $this->getTotalConnectionsCreated()); $this->assertSame($totalConnectionsCreated + 1, $this->getTotalConnectionsCreated());
// Execute an insert into the test collection of a {test: 1} document and verify that it succeeds.
$result = $this->insertDocuments(1);
$this->assertSame(1, $result->getInsertedCount());
} }
/** /**
...@@ -142,6 +146,10 @@ class PrimaryStepDownSpecTest extends FunctionalTestCase ...@@ -142,6 +146,10 @@ class PrimaryStepDownSpecTest extends FunctionalTestCase
// Verify that the connection pool has been cleared // Verify that the connection pool has been cleared
$this->assertSame($totalConnectionsCreated + 1, $this->getTotalConnectionsCreated()); $this->assertSame($totalConnectionsCreated + 1, $this->getTotalConnectionsCreated());
// Execute an insert into the test collection of a {test: 1} document and verify that it succeeds.
$result = $this->insertDocuments(1);
$this->assertSame(1, $result->getInsertedCount());
} }
/** /**
...@@ -174,6 +182,10 @@ class PrimaryStepDownSpecTest extends FunctionalTestCase ...@@ -174,6 +182,10 @@ class PrimaryStepDownSpecTest extends FunctionalTestCase
// Verify that the connection pool has been cleared // Verify that the connection pool has been cleared
$this->assertSame($totalConnectionsCreated + 1, $this->getTotalConnectionsCreated()); $this->assertSame($totalConnectionsCreated + 1, $this->getTotalConnectionsCreated());
// Execute an insert into the test collection of a {test: 1} document and verify that it succeeds.
$result = $this->insertDocuments(1);
$this->assertSame(1, $result->getInsertedCount());
} }
/** /**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment