Feat: auth for remote callback / Modify: use map to store hooks in filesystem

This commit is contained in:
HFO4
2019-12-30 19:08:38 +08:00
parent ca9f44c06c
commit d29b7ef6f8
15 changed files with 158 additions and 59 deletions

View File

@@ -120,7 +120,7 @@ func TestFileSystem_Upload(t *testing.T) {
})
err = fs.Upload(ctx, file)
asserts.Error(err)
fs.BeforeUpload = nil
fs.Hooks["BeforeUpload"] = nil
testHandller.AssertExpectations(t)
// 上传文件失败