Skip to content

Commit

Permalink
internal: fix test settledness
Browse files Browse the repository at this point in the history
  • Loading branch information
runspired committed Oct 6, 2023
1 parent 0e0480c commit a4b7d9f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/main/tests/integration/records/delete-record-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -494,6 +494,9 @@ module('integration/deletedRecord - Deleting Records', function (hooks) {

await company.destroyRecord();

// wait for ember's runloop to flush
await settled();

try {
assert.true(company.isDeleted, 'isDeleted should be true');
assert.true(company.isDestroying, 'isDestroying should be true');
Expand Down

0 comments on commit a4b7d9f

Please sign in to comment.