WeedFSClient_test.go
@@ -2,7 +2,6 @@ import ( "fmt" "io/ioutil" "testing" ) @@ -16,11 +15,8 @@ } func TestUpDateFile(t *testing.T) { //1 方法必须传入testing.T 2 方法名必须是以Test开头,驼峰命名 weedfsUri := "http://192.168.5.23:6333/submit?collection=11111-persistent" url := "http://192.168.5.23:6120/78,22eae6b7875b67" data,err := ioutil.ReadFile("./105.jpg") path,err := UpDateFile(url,"",data) if err != nil { t.Error("测试失败") } fmt.Println(path) filePath := appendCollection2Uri(weedfsUri, url) fmt.Println(filePath) }