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:
parent
f173e6650a
commit
01339b089e
3 changed files with 4 additions and 73 deletions
|
@ -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()
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue