fix: cannot use LAN OSS endpoint for uploading

This commit is contained in:
HFO4
2022-04-26 19:05:54 +08:00
parent a3d0291f41
commit c62e355345
3 changed files with 11 additions and 1 deletions

View File

@@ -320,6 +320,12 @@ func TestFileSystem_CreateDirectory(t *testing.T) {
_, err = fs.CreateDirectory(ctx, "/")
asserts.NoError(err)
asserts.NoError(mock.ExpectationsWereMet())
// 直接创建根目录, 重设根目录
fs.Root = &model.Folder{}
_, err = fs.CreateDirectory(ctx, "/")
asserts.NoError(err)
asserts.NoError(mock.ExpectationsWereMet())
}
func TestFileSystem_ListDeleteFiles(t *testing.T) {