fix(files): incorrect delete folder operation order

This commit is contained in:
hexxa 2022-03-05 16:55:01 +08:00 committed by Hexxa
parent 652adba4ad
commit 406f908d9e
4 changed files with 75 additions and 58 deletions

View file

@ -377,6 +377,15 @@ func TestFileHandlers(t *testing.T) {
t.Fatalf("size not match %d %d \n", len(content), metadata.Size)
}
}
for _, dirPath := range []string{srcDir, dstDir} {
res, _, errs := cl.Delete(dirPath)
if len(errs) > 0 {
t.Fatal(errs)
} else if res.StatusCode != 200 {
t.Fatal(res.StatusCode)
}
}
})
t.Run("test download APIs: Download(normal, ranges)", func(t *testing.T) {

Binary file not shown.