Skip to content

Commit 419ef62

Browse files
committed
Merge pull request #689
2 parents f9493e7 + b4e720b commit 419ef62

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

tests/SpecTests/PrimaryStepDownSpecTest.php

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,10 @@ public function testNotMasterResetConnectionPool()
110110

111111
// Verify that the connection pool has been cleared
112112
$this->assertSame($totalConnectionsCreated + 1, $this->getTotalConnectionsCreated());
113+
114+
// Execute an insert into the test collection of a {test: 1} document and verify that it succeeds.
115+
$result = $this->insertDocuments(1);
116+
$this->assertSame(1, $result->getInsertedCount());
113117
}
114118

115119
/**
@@ -142,6 +146,10 @@ public function testShutdownResetConnectionPool()
142146

143147
// Verify that the connection pool has been cleared
144148
$this->assertSame($totalConnectionsCreated + 1, $this->getTotalConnectionsCreated());
149+
150+
// Execute an insert into the test collection of a {test: 1} document and verify that it succeeds.
151+
$result = $this->insertDocuments(1);
152+
$this->assertSame(1, $result->getInsertedCount());
145153
}
146154

147155
/**
@@ -174,6 +182,10 @@ public function testInterruptedAtShutdownResetConnectionPool()
174182

175183
// Verify that the connection pool has been cleared
176184
$this->assertSame($totalConnectionsCreated + 1, $this->getTotalConnectionsCreated());
185+
186+
// Execute an insert into the test collection of a {test: 1} document and verify that it succeeds.
187+
$result = $this->insertDocuments(1);
188+
$this->assertSame(1, $result->getInsertedCount());
177189
}
178190

179191
/**

0 commit comments

Comments
 (0)