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
2021-11-02 17:30:48 +01:00
parent 370e3cdfea
commit 6826efc723
4 changed files with 41 additions and 4 deletions
+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)
}
}