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()
110
110
111
111
// Verify that the connection pool has been cleared
112
112
$ 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 ());
113
117
}
114
118
115
119
/**
@@ -142,6 +146,10 @@ public function testShutdownResetConnectionPool()
142
146
143
147
// Verify that the connection pool has been cleared
144
148
$ 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 ());
145
153
}
146
154
147
155
/**
@@ -174,6 +182,10 @@ public function testInterruptedAtShutdownResetConnectionPool()
174
182
175
183
// Verify that the connection pool has been cleared
176
184
$ 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 ());
177
189
}
178
190
179
191
/**
You can’t perform that action at this time.
0 commit comments