Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ensure that the engine is destroyed in tests when the test context is cleaned up. #876

Merged
merged 1 commit into from
Apr 13, 2024

Conversation

brettburley
Copy link
Contributor

If the engine is not registered to be destroyed, instances of the engine can be leaked as reported in #875.

… cleaned up.

If the engine is not registered to be destroyed, instances of the engine can be
leaked as reported in ember-engines#875.
@@ -16,6 +17,14 @@ module('Integration | setupEngine', function () {
let route = this.engine.lookup('route:post.likes');
assert.ok(route);
});

test('it is destroyed with the test context', async function (assert) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice!

@SergeAstapov SergeAstapov merged commit f876801 into ember-engines:master Apr 13, 2024
9 checks passed
@SergeAstapov
Copy link
Contributor

@brettburley thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Memory leak in tests when using setupEngine helper
2 participants