Fix: failed test due to relative path

This commit is contained in:
HFO4
2020-03-12 09:40:29 +08:00
parent 71876a79cd
commit 297fc8d5bb
4 changed files with 8 additions and 12 deletions

View File

@@ -112,6 +112,7 @@ func TestFileSystem_Upload(t *testing.T) {
Size: 5,
VirtualPath: "/",
Name: "1.txt",
File: ioutil.NopCloser(strings.NewReader("")),
}
err = fs.Upload(ctx, file)
asserts.NoError(err)