File tree Expand file tree Collapse file tree 1 file changed +12
-0
lines changed
Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Original file line number Diff line number Diff 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 /**
You can’t perform that action at this time.
0 commit comments