We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1ae4467 commit 71507f7Copy full SHA for 71507f7
detox/src/devices/allocation/drivers/android/genycloud/GenyAllocDriver.js
@@ -102,6 +102,16 @@ class GenyAllocDriver {
102
* @return {Promise<void>}
103
*/
104
async free(cookie, options = {}) {
105
+ try {
106
+ if (!options.shutdown) {
107
+ await Timer.run(10000, 'waiting for device to respond', async () => {
108
+ await this._adb.shell(cookie.adbName, 'echo ok');
109
+ });
110
+ }
111
+ } catch {
112
+ options.shutdown = true;
113
114
+
115
// Known issue: cookie won't have a proper 'instance' field due to (de)serialization
116
if (options.shutdown) {
117
this._genyRegistry.removeInstance(cookie.id);
0 commit comments