Fixing repository test failure

merge-requests/1/head
Madawa Soysa 7 years ago
parent ca6c9f1ec7
commit fcc6dd1564

@ -31,9 +31,6 @@ public class TestTaskManagerImpl implements TaskManager {
@Override
public boolean deleteTask(String taskName) throws TaskException {
if(this.registeredTasks.size() <= 0) {
throw new TaskException("Cannot delete task.", TaskException.Code.NO_TASK_EXISTS);
}
for (TaskInfo task : this.registeredTasks) {
if (task.getName().contains(taskName)) {
this.registeredTasks.remove(task);

Loading…
Cancel
Save