1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-23 22:52:11 +02:00

Don't wait forever

This commit is contained in:
John Cortell 2010-03-05 23:24:17 +00:00
parent 81a56f94b8
commit 0eb1964dd6

View file

@ -119,12 +119,9 @@ public class GDBProcessesTest extends BaseTestCase {
}
});
/*
* Wait for the operation to get over
*/
fWait.waitUntilDone(AsyncCompletionWaitor.WAIT_FOREVER);
/*
* Assert false if status is not OK
* Wait for the operation to complete and validate success.
*/
fWait.waitUntilDone(TestsPlugin.massageTimeout(2000));
Assert.assertTrue(fWait.getMessage(), fWait.isOK());
/*
@ -161,7 +158,9 @@ public class GDBProcessesTest extends BaseTestCase {
fProcService.getExecutionData(threadDmc, rm);
}
});
fWait.waitUntilDone(AsyncCompletionWaitor.WAIT_FOREVER);
// Wait for the operation to complete and validate success.
fWait.waitUntilDone(TestsPlugin.massageTimeout(2000));
assertTrue(fWait.getMessage(), fWait.isOK());
IThreadDMData threadData = (IThreadDMData)fWait.getReturnInfo();