Skip to content

Commit

Permalink
Try 0 tolerance in MemoryLeakTest
Browse files Browse the repository at this point in the history
  • Loading branch information
vudaltsov committed Feb 9, 2024
1 parent cf61cba commit 5d69410
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion infection.json5.dist
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,4 @@
"NullSafePropertyCall": false
},
"minCoveredMsi": 80,
"testFrameworkOptions": "--testsuite=unit"
}
2 changes: 1 addition & 1 deletion tests/memory/MemoryLeakTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ private static function assertMemoryIsConstant(\Closure $action): void
$action();
self::cleanUpParser();

self::assertLessThanOrEqual(500, memory_get_usage() - $memory);
self::assertLessThanOrEqual($memory, memory_get_usage());
}

public function testTyphoonReflectorClassExistsIsNotLeaking(): void
Expand Down

0 comments on commit 5d69410

Please sign in to comment.