We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d6d3a92 commit 5260b42Copy full SHA for 5260b42
1 file changed
src/main/java/com/appium/manager/DeviceAllocationManager.java
@@ -48,11 +48,15 @@ public List<AppiumDevice> getDevices() {
48
49
public synchronized AppiumDevice getNextAvailableDevice() {
50
int i = 0;
51
+ System.out.println("inside getNextAvailableDevice");
52
+
53
for (AppiumDevice device : allDevices) {
54
Thread t = Thread.currentThread();
55
t.setName("Thread_" + i);
56
i++;
- if (device.isAvailable()) {
57
+ boolean flag =device.isAvailable();
58
+ System.out.println("isDevice available : "+flag);
59
+ if (flag) {
60
device.blockDevice();
61
return device;
62
}
0 commit comments