appium / appium-flutter-driver

Appium Flutter Driver is a test automation tool for Flutter apps on multiple platforms/OSes. Appium Flutter Driver is part of the Appium mobile test automation tool maintained by community
MIT License
440 stars 179 forks source link

fix: leftover portforward #625

Closed KazuCocoa closed 7 months ago

KazuCocoa commented 7 months ago

I found leftover ports in https://github.com/appium/appium-flutter-driver/issues/617 , we should fix

For example, current method to do the port forward leftover the used ports, which is bad.

% adb  forward --list
D0AA002182JC0202126 tcp:8200 tcp:6790
D0AA002182JC0202126 tcp:41323 tcp:41323

% adb  forward --list
D0AA002182JC0202126 tcp:8200 tcp:6790
D0AA002182JC0202126 tcp:41323 tcp:41323

this will be:...

% adb  forward --list
D0AA002182JC0202126 tcp:8200 tcp:6790
D0AA002182JC0202126 tcp:39947 tcp:39947

% adb  forward --list
KazuCocoa commented 7 months ago

lts see how this will be