chore: get or remove by states

This commit is contained in:
Noah Hsu
2022-06-23 21:19:01 +08:00
parent 6c61f1d261
commit 92983aa185
5 changed files with 26 additions and 14 deletions

View File

@ -28,7 +28,7 @@ func TestTask_Manager(t *testing.T) {
t.Errorf("task status not running: %s", task.state)
}
time.Sleep(time.Second)
if task.state != FINISHED {
if task.state != Succeeded {
t.Errorf("task status not finished: %s", task.state)
}
}