Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
davidpablocohn committed Jun 2, 2024
1 parent 2d7e9ab commit e3991aa
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions test/logger/writers/test_serial_writer.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,8 @@ def setUp(self):
# self.sim_serial = SimSerial(port=self.tmp_port_name, filebase=self.dummy_filebase)

def _run_reader(self, port):
reader = SerialReader(port)
logging.info(f'started _run_reader on port {port}')
reader = SerialReader(port, baudrate=9600)
for line in SAMPLE_DATA.split('\n'):
result = reader.read()
logging.info('data: %s, read: %s', line, result)
Expand Down Expand Up @@ -102,7 +103,8 @@ def test_write(self):
time.sleep(0.1)

def _run_writer():
writer = SerialWriter(port=write_port)
logging.info(f'started _run_writer on port {write_port}')
writer = SerialWriter(port=write_port, baudrate=9600)
for line in SAMPLE_DATA.split('\n'):
writer.write(line)
logging.info('wrote: %s', line)
Expand Down

0 comments on commit e3991aa

Please sign in to comment.