@@ -259,38 +259,6 @@ public function testDestroy(): void
259259 $ this ->assertEquals ('y ' , $ connection2 ->getResource ());
260260 }
261261
262- public function testUnhealthyConnectionsPurged (): void
263- {
264- $ object = new Pool ('testDestroy ' , 2 , function () {
265- return 'x ' ;
266- });
267-
268- $ this ->assertEquals (2 , $ object ->count ());
269-
270- $ connection1 = $ object ->pop ();
271- $ connection2 = $ object ->pop ();
272-
273- $ connection1Id = $ connection1 ->getId ();
274- $ connection2Id = $ connection2 ->getId ();
275-
276- $ this ->assertEquals (0 , $ object ->count ());
277-
278- $ this ->assertEquals ('x ' , $ connection1 ->getResource ());
279- $ this ->assertEquals ('x ' , $ connection2 ->getResource ());
280-
281- $ connection1 ->setHealthy (false );
282-
283- $ object ->reclaim ();
284-
285- $ this ->assertEquals (2 , $ object ->count ());
286-
287- $ connection2 = $ object ->pop ();
288- $ connection1 = $ object ->pop ();
289-
290- $ this ->assertNotEquals ($ connection1Id , $ connection1 ->getId ());
291- $ this ->assertEquals ($ connection2Id , $ connection2 ->getId ());
292- }
293-
294262 public function testTelemetry (): void
295263 {
296264 $ telemetry = new TestTelemetry ();
0 commit comments