1
0
Fork 0
mirror of https://github.com/openstf/stf synced 2025-10-05 10:39:25 +02:00

Remove numeric flags in favor of plain string data. Scales better.

This commit is contained in:
Simo Kinnunen 2014-01-31 19:38:53 +09:00
parent f173e6650a
commit 01339b089e
3 changed files with 4 additions and 73 deletions

View file

@ -16,12 +16,6 @@ module.exports = function(wire) {
, absent: 'ABSENT'
}[type]]
}
, toDeviceType: function(type) {
return wire.DeviceStatus[{
device: 'PHYSICAL'
, emulator: 'VIRTUAL'
}[type]]
}
, envelope: function(type, message) {
return new wire.Envelope(type, message.encode()).encodeNB()
}