Skip to content

Commit fa78a43

Browse files
authored
Remove excessive destroy call
I noticed while migrating some things away from EmberObject (which debounces destroy) that destroy was being triggered more than once due to this. It appears the upstream change has long-since landed and we can remove this and speed up everyone's tests <3
1 parent 9bcbe39 commit fa78a43

1 file changed

Lines changed: 0 additions & 6 deletions

File tree

addon-test-support/@ember/test-helpers/setup-context.ts

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -200,12 +200,6 @@ function cleanup(context: BaseContext) {
200200
(Ember as any).testing = false;
201201

202202
unsetContext();
203-
204-
if (isTestContext(context)) {
205-
// this should not be required, but until https://github.com/emberjs/ember.js/pull/19106
206-
// lands in a 3.20 patch release
207-
context.owner.destroy();
208-
}
209203
}
210204

211205
/**

0 commit comments

Comments
 (0)