Throw error if there was an timeout waiting for semaphore

This commit is contained in:
Ilya.Kazakevich
2016-05-31 00:44:24 +03:00
parent e69def370c
commit 7beff4bf52
@@ -121,7 +121,7 @@ public abstract class PyProcessWithConsoleTestTask<T extends ProcessWithConsoleR
}, ModalityState.NON_MODAL);
processFinishedSemaphore.waitFor(60000);
assert processFinishedSemaphore.waitFor(60000): "Timeout waiting semaphore";
XDebuggerTestUtil.waitForSwing();
if (failed.get()) {
Assert.fail("Failed to run test, see logs for exceptions");