fix(uploader, files/handlers): fix incorrect unlock, catch and check error after calling api (#26)

* fix(uploader, files/handlers): fix incorrect unlock, catch and check after calling api

* fix(uploader): fix uploader test
This commit is contained in:
Hexxa 2020-12-21 23:20:06 +08:00 committed by GitHub
parent 64493ec76a
commit cb26003b99
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 32 additions and 11 deletions

View file

@ -234,11 +234,11 @@ func TestFileHandlers(t *testing.T) {
t.Run("test dirs APIs: Mkdir-Create-UploadChunk-List", func(t *testing.T) {
for dirPath, files := range map[string]map[string]string{
"dir/path1/": map[string]string{
"dir/path1": map[string]string{
"f1.md": "11111",
"f2.md": "22222222222",
},
"dir/path1/path2": map[string]string{
"dir/path2/path2": map[string]string{
"f3.md": "3333333",
},
} {