From 9de0df7cbd3214e21b46bdba275f0aef6cb0bf1f Mon Sep 17 00:00:00 2001 From: Piotr Sarnacki Date: Wed, 2 Sep 2015 13:14:04 +0200 Subject: [PATCH] [specs] Fix ssh key deletion test We need to wait till the record is deleted, because otherwise it will throw an error after the tests is finished. For now I just wait without checking anything, but in the future we could actually check if the request was sent etc. --- tests/integration/components/ssh-key-test.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/integration/components/ssh-key-test.js b/tests/integration/components/ssh-key-test.js index ebdf5390..9da6d50a 100644 --- a/tests/integration/components/ssh-key-test.js +++ b/tests/integration/components/ssh-key-test.js @@ -59,6 +59,9 @@ test('it deletes a custom key if permissions are right', function(assert) { assert.ok(key.get('isDeleted'), 'key should be deleted'); + // we don't deal with saving records for now, so at least wait till it's done + stop(); + setTimeout(function() { start(); }, 50); }); test('it does not delete the custom key if permissions are insufficient', function(assert) {