I observed that to ensure that the /status endpoint stops, we should kill the io.appium.uiautomator2.server process as well in addition to io.appium.uiautomator2.server.test. Only .test process kill keep responding to the /status. So as cleanupAutomationLeftovers, it would be reasonable to stop both processes
(this behavior finding is an edge case in my another issue investigation though)
More tuning fix for https://github.com/appium/appium-uiautomator2-driver/pull/655
I observed that to ensure that the
/status
endpoint stops, we should kill theio.appium.uiautomator2.server
process as well in addition toio.appium.uiautomator2.server.test
. Only.test
process kill keep responding to the/status
. So ascleanupAutomationLeftovers
, it would be reasonable to stop both processes (this behavior finding is an edge case in my another issue investigation though)