1
0
Fork 0
mirror of https://github.com/openstf/stf synced 2025-10-04 10:19:30 +02:00

Looks like the DB needs ready: false on device absence or plugged in devices show up as immediately available. That's a bug, will need to investigate later.

This commit is contained in:
Simo Kinnunen 2015-06-02 16:14:39 +09:00
parent 2ec03798a4
commit 11a042d0aa

View file

@ -163,6 +163,7 @@ dbapi.unsetDeviceOwner = function(serial) {
dbapi.setDeviceAbsent = function(serial) { dbapi.setDeviceAbsent = function(serial) {
return db.run(r.table('devices').get(serial).update({ return db.run(r.table('devices').get(serial).update({
present: false present: false
, ready: false
})) }))
} }