Use states on Uploads

This commit is contained in:
2021-11-02 22:10:19 +10:30
parent 6fa6c34ccb
commit 726ae9a5aa
2 changed files with 14 additions and 15 deletions

View File

@@ -70,7 +70,7 @@ func TestTooBigUpload(t *testing.T) {
} else if err.Error() != "received 413 - file too large" {
t.Errorf("wrong error occurred: %s", err.Error())
}
if u.Failed != true {
if u.State != StateFailed {
t.Error("upload should have been marked failed")
}
}