Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
[LIB-757] - improve test
  • Loading branch information
ilu2112 committed Jun 29, 2016
commit 5d8a1cec2d2274b15c1f25f325c28a05eea6b1ce
7 changes: 5 additions & 2 deletions tests/integration_test_backups.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,12 @@ def _test_backup_restore(self, backup_id):
'There should be only 1 more instance class after new class creation.'
)

# wait for backup to be restored
# wait for backup to be truly saved and restored
while backup.status != 'success':
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If something will fail - we will never end the tests :)

So the check here - is that restore is created and running - the whole logic is checked on CORE test no need to repeat that.

time.sleep(1)
backup.reload()
backup.restore()
time.sleep(10)
time.sleep(15)

instance.reload()
classes_count_after_restore = len(list(instance.classes))
Expand Down