test(files): add move folder test and clean code

This commit is contained in:
hexxa 2022-03-05 11:03:51 +08:00 committed by Hexxa
parent 17b4544487
commit 652adba4ad
6 changed files with 74 additions and 80 deletions

View file

@ -125,7 +125,7 @@ func TestSpaceLimit(t *testing.T) {
res, _, errs := cl.Create(filePath, 1)
if len(errs) > 0 {
t.Fatal(errs)
} else if res.StatusCode != 500 {
} else if res.StatusCode != 403 {
t.Fatalf("(space limit): this request should be rejected: %d", res.StatusCode)
}