diff --git a/test/Response/SapiStreamEmitterTest.php b/test/Response/SapiStreamEmitterTest.php index 79440d72..8992c09e 100644 --- a/test/Response/SapiStreamEmitterTest.php +++ b/test/Response/SapiStreamEmitterTest.php @@ -205,6 +205,8 @@ public function testEmitMemoryUsage($seekable, $maxBufferLength, $sizeBlocks, $m ob_end_flush(); + gc_collect_cycles(); + $localMemoryUsage = memory_get_usage(); $this->assertLessThanOrEqual($maxBufferLength, $peakBufferLength);