Fix for Init On lIne unit test failure.
After adding a task, the task state is tested and can be already successfully completed
| | |
| | | } |
| | | } |
| | | |
| | | assertEquals(taskState, expectedTaskState, "Task State:" + taskState + |
| | | if ((expectedTaskState == TaskState.RUNNING) |
| | | && (taskState == TaskState.COMPLETED_SUCCESSFULLY)) |
| | | { |
| | | // We usually wait the running state after adding the task |
| | | // and if the task is fast enough then it may be already done |
| | | // and we can go on. |
| | | } |
| | | else |
| | | { |
| | | assertEquals(taskState, expectedTaskState, "Task State:" + taskState + |
| | | " Expected task state:" + expectedTaskState); |
| | | } |
| | | } |
| | | catch(Exception e) |
| | | { |