Skip to content

Conversation

nunomaduro
Copy link
Member

This pull request addresses one of the memory leaks being mentioned at #44214, by performing a proper cleaning of the $originalExceptionHandler and $originalDeprecationHandler on the Laravel's base test case class.

On Vapor's test suite, after having #44306 (33% less memory), and after disabling bugsnag (14% less memory) - here is the results on 600 tests: 1% less memory used.

Before…
Time: 01:02.732, Memory: 168.50 MB

After…
Time: 01:02.595, Memory: 166.50 MB

@taylorotwell taylorotwell merged commit e6f0ba3 into 9.x Sep 26, 2022
@taylorotwell taylorotwell deleted the fix/memory-leaks-in-test-suite-handlers branch September 26, 2022 18:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants