Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/adb/command/host-serial/waitfordevice.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ Protocol = require '../../protocol'

class WaitForDeviceCommand extends Command
execute: (serial) ->
this._send "host-serial:#{serial}:wait-for-any"
this._send "host-serial:#{serial}:wait-for-any-device"
@parser.readAscii 4
.then (reply) =>
switch reply
Expand Down
4 changes: 2 additions & 2 deletions test/adb/command/host-serial/waitfordevice.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,12 @@ WaitForDeviceCommand = \

describe 'WaitForDeviceCommand', ->

it "should send 'host-serial:<serial>:wait-for-any'", (done) ->
it "should send 'host-serial:<serial>:wait-for-any-device'", (done) ->
conn = new MockConnection
cmd = new WaitForDeviceCommand conn
conn.socket.on 'write', (chunk) ->
expect(chunk.toString()).to.equal \
Protocol.encodeData('host-serial:abba:wait-for-any').toString()
Protocol.encodeData('host-serial:abba:wait-for-any-device').toString()
setImmediate ->
conn.socket.causeRead Protocol.OKAY
conn.socket.causeRead Protocol.OKAY
Expand Down