Add test for the too big upload fail
This commit is contained in:
parent
672fd83f27
commit
460fcf5523
@ -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")
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user