Skip to content

Commit 0f5460f

Browse files
committed
Do not run memory leak testing test with code coverage active
1 parent 83ceb7f commit 0f5460f

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/Test.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -354,6 +354,10 @@ function testWatcherRegistrationAndCancellationInfo($type, $args)
354354
/** @dataProvider provideRegistrationArgs */
355355
function testNoMemoryLeak($type, $args)
356356
{
357+
if ($this->getTestResultObject()->getCollectCodeCoverageInformation()) {
358+
$this->markTestSkipped("Cannot run this test with code coverage active [code coverage consumes memory which makes it impossible to rely on memory_get_usage()]");
359+
}
360+
357361
$runs = 2000;
358362

359363
if ($type === "onSignal") {

0 commit comments

Comments
 (0)