Skip to content

Commit

Permalink
Fix unit test for serial connection
Browse files Browse the repository at this point in the history
  • Loading branch information
Aaron-MJohn committed Apr 13, 2024
1 parent 4e3979c commit 9f9695b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/unit/transport/test_serial.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ def test_tty_serial_read(self):
def test_tty_serial_read_prompt(self):
self.dev._tty._ser = MagicMock()
self.dev._tty.EXPECT_TIMEOUT = 0.1
self.dev._tty._ser.readall.side_effect = [b"", b"test"]
self.dev._tty._ser.readall.side_effect = [six.b(""), six.b("test")]
self.assertEqual(self.dev._tty.read_prompt()[0], None)


Expand Down

0 comments on commit 9f9695b

Please sign in to comment.