mirror of
https://github.com/httprunner/httprunner.git
synced 2026-09-06 07:57:27 +08:00
refactor: gadb PushFile pushes localfile path
This commit is contained in:
@@ -246,8 +246,8 @@ func TestDevice_Push(t *testing.T) {
|
||||
setupDevices(t)
|
||||
|
||||
for _, dev := range devices {
|
||||
file, _ := os.Open("/Users/hero/Documents/temp/MuMu共享文件夹/test.txt")
|
||||
err := dev.PushFile(file, "/sdcard/Download/push.txt", time.Now())
|
||||
localPath := "test.txt"
|
||||
err := dev.PushFile(localPath, "/sdcard/Download/push.txt", time.Now())
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user