Fix pure-go unittests

So they can run on e.g. LXC containers as root, or other conceivable setups.
This commit is contained in:
Lorenzo Bolla committed 2022-01-27 09:30:14 +01:00
1 parent 370e3cdfea
commit 6826efc723
4 files changed
+41 -4

No files matched your search

+1 -1
View File
@@ -56,7 +56,7 @@ func (list *List) DeleteTaskByID(ID int) (Task, error) {
return *task, nil
}
return *task, fmt.Errorf("Task with id %v is still running", ID)
return *task, fmt.Errorf("Task with id %v is still in state=%d", ID, task.State)
}
}