Add test for the too big upload fail
This commit is contained in:
@@ -66,4 +66,7 @@ func TestTooBigUpload(t *testing.T) {
|
|||||||
} else if err.Error() != "received 413 - file too large" {
|
} else if err.Error() != "received 413 - file too large" {
|
||||||
t.Errorf("wrong error occurred: %s", err.Error())
|
t.Errorf("wrong error occurred: %s", err.Error())
|
||||||
}
|
}
|
||||||
|
if u.Failed != true {
|
||||||
|
t.Error("upload should have been marked failed")
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user