Adam Litke has uploaded a new change for review.
Change subject: tests: Fix test to not wait forever on failure ......................................................................
tests: Fix test to not wait forever on failure
Change-Id: I57d49895ff0c222b5cdda537e722248d1f2681b7 Signed-off-by: Adam Litke alitke@redhat.com --- M tests/storage_sdm_copy_data_test.py 1 file changed, 2 insertions(+), 1 deletion(-)
git pull ssh://gerrit.ovirt.org:29418/vdsm refs/changes/49/65149/1
diff --git a/tests/storage_sdm_copy_data_test.py b/tests/storage_sdm_copy_data_test.py index 948d170..6b116d5 100644 --- a/tests/storage_sdm_copy_data_test.py +++ b/tests/storage_sdm_copy_data_test.py @@ -275,7 +275,8 @@ job_id = make_uuid() job = storage.sdm.api.copy_data.Job(job_id, 0, source, dest) t = start_thread(job.run) - fake_convert.ready_event.wait() + if not fake_convert.ready_event.wait(1): + raise RuntimeError("Timeout waiting for thread") job.abort() t.join(1) if t.isAlive():