Skip to content

Commit

Permalink
test: increases later() timeout
Browse files Browse the repository at this point in the history
- otherwise the following tests sometimes fail:
- Integration | Validations | Factory - General: debounced validations
- Integration | Validations | Factory - General: debounced validator should only be called once
  • Loading branch information
Pixelik committed Oct 7, 2023
1 parent fb3bf18 commit f92c592
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/integration/validations/factory-general-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -539,7 +539,7 @@ module('Integration | Validations | Factory - General', function (hooks) {
object.get('validations.attrs.lastName.message'),
undefined,
);
}, 505);
}, 1000);
});

test('debounced validator should only be called once', async function (assert) {
Expand All @@ -564,7 +564,7 @@ module('Integration | Validations | Factory - General', function (hooks) {

await later(() => {
assert.strictEqual(count, 1);
}, 505);
}, 1000);
});

test('debounced validations should cleanup on object destroy', function (assert) {
Expand Down

0 comments on commit f92c592

Please sign in to comment.