refactor: InstallAPK install apk path

This commit is contained in:
lilong.129
2024-10-23 15:23:52 +08:00
parent e176a55cc8
commit 4b568dac01
5 changed files with 25 additions and 25 deletions
+2 -2
View File
@@ -331,9 +331,9 @@ func TestDevice_RunShellCommandBackgroundWithBytes(t *testing.T) {
func TestDevice_InstallAPK(t *testing.T) {
setupDevices(t)
apk, _ := os.Open("test.apk")
apkPath := "test.apk"
for _, dev := range devices {
res, err := dev.InstallAPK(apk)
res, err := dev.InstallAPK(apkPath)
if err != nil {
t.Fatal(err)
}