Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
2537: Fix massive memory leak in unit tests r=Anviking a=Anviking # Issue Number ADP-758, #2472 # Overview - [x] Make sure to also close the DBLayers we create! - [x] <s>Use validateGenerator to also test non-QSM Arbitrary instances</s> - [ ] <s>TODO: Look a bit more at the generators / validation of them, could perhaps split the PR too.</s> # Comments Before this fix the memory usage would steadily climb upwards 5-15GB. Now it's at most ~40 MB. ### Running part of unit tests before fix: <img width="1167" alt="ska__rmavbild_2021-02-25_kl _12 34 43" src="https://user-images.githubusercontent.com/304423/109172195-cafd8c00-7782-11eb-8afd-a40732fccded.png"> ### Running all unit tests after fix: <img width="1399" alt="Skärmavbild 2021-02-25 kl 15 54 16" src="https://user-images.githubusercontent.com/304423/109171975-938edf80-7782-11eb-904b-9404708fbdde.png"> <!-- Additional comments or screenshots to attach if any --> <!-- Don't forget to: ✓ Self-review your changes to make sure nothing unexpected slipped through ✓ Assign yourself to the PR ✓ Assign one or several reviewer(s) ✓ Jira will detect and link to this PR once created, but you can also link this PR in the description of the corresponding ticket ✓ Acknowledge any changes required to the Wiki ✓ Finally, in the PR description delete any empty sections and all text commented in <!--, so that this text does not appear in merge commit messages. --> Co-authored-by: Johannes Lund <[email protected]>
- Loading branch information