diff --git a/packages/unpublished-relationship-performance-test-app/app/routes/destroy.js b/packages/unpublished-relationship-performance-test-app/app/routes/destroy.js index cc3509ad1a0..ebbc3f2472c 100644 --- a/packages/unpublished-relationship-performance-test-app/app/routes/destroy.js +++ b/packages/unpublished-relationship-performance-test-app/app/routes/destroy.js @@ -12,7 +12,7 @@ export default Route.extend({ performance.mark('start-destroy-records'); const children = await parent.children; - const childrenPromise = all(children.map((child) => child.destroyRecord())); + const childrenPromise = all(children.toArray().map((child) => child.destroyRecord())); const parentPromise = parent.destroyRecord(); await all([childrenPromise, parentPromise]); diff --git a/packages/unpublished-relationship-performance-test-app/app/routes/unload.js b/packages/unpublished-relationship-performance-test-app/app/routes/unload.js index da8ab75815a..3b149a1e4ef 100644 --- a/packages/unpublished-relationship-performance-test-app/app/routes/unload.js +++ b/packages/unpublished-relationship-performance-test-app/app/routes/unload.js @@ -12,7 +12,7 @@ export default Route.extend({ // runloop to ensure destroy does not escape bounds of the test run(() => { - children.forEach((child) => child.unloadRecord()); + children.toArray().forEach((child) => child.unloadRecord()); }); performance.mark('end-unload-records'); },