Skip to content
This repository has been archived by the owner on Jan 29, 2020. It is now read-only.

Commit

Permalink
Minor improvement. Forces garbage collection before check local memor…
Browse files Browse the repository at this point in the history
…y usage.
  • Loading branch information
fcabralpacheco authored and Ocramius committed Jan 17, 2017
1 parent 0eec353 commit df1b59a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions test/Response/SapiStreamEmitterTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit df1b59a

Please sign in to comment.