refactor: gadb PushFile pushes localfile path

This commit is contained in:
lilong.129
2024-10-22 22:46:59 +08:00
parent d86897c249
commit e176a55cc8
4 changed files with 15 additions and 10 deletions
+2 -2
View File
@@ -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)
}