Adds a verification response for the remote console connecting

Signed-off-by: evanchia <evanchia@amazon.com>
This commit is contained in:
evanchia
2021-08-19 17:54:48 -07:00
parent e865ad5d23
commit a68f5c53c9
4 changed files with 14 additions and 11 deletions
@@ -141,11 +141,11 @@ class TestRemoteConsole():
@mock.patch('socket.socket', mock.MagicMock())
@mock.patch('ly_remote_console.remote_console_commands.threading', mock.MagicMock())
def test_HandleMessage_AutoCompleteListDone_ReadySet(self):
def test_HandleMessage_ConnectMessage_ReadySet(self):
rc_instance = remote_console.RemoteConsole()
rc_instance.on_display = mock.MagicMock()
rc_instance.ready = mock.MagicMock()
msg = b'70' # in python3 socket.recv returns byte array. 7 is AUTOCOMPLETELISTDONE
msg = b'I0' # in python3 socket.recv returns byte array. 7 is AUTOCOMPLETELISTDONE
rc_instance._handle_message(msg)