attempt fixing ctests

This commit is contained in:
DJ2LS 2022-12-04 09:43:32 +01:00
parent 966198a9c3
commit 03d4cce4a7
3 changed files with 7 additions and 4 deletions

View file

@ -297,5 +297,5 @@ def t_datac0_2(
sock.SOCKET_QUEUE.queue
), f"{item} not found in {str(sock.SOCKET_QUEUE.queue)}"
assert '"arq":"session","status":"close"' in str(sock.SOCKET_QUEUE.queue)
assert '"arq":"session","dxcallsign":"AA0AA","status":"close"' in str(sock.SOCKET_QUEUE.queue)
log.warning("station2: Exiting!")

View file

@ -287,7 +287,10 @@ def t_datac0_2(
# Allow enough time for this side to receive the disconnect frame.
timeout = time.time() + timeout_duration
while '"arq":"session","status":"close"' not in str(sock.SOCKET_QUEUE.queue):
while '"arq":"session", "dxcallsign": "AA2BB-0", "status":"close"' not in str(sock.SOCKET_QUEUE.queue):
if time.time() > timeout:
log.warning("station2", TIMEOUT=True, queue=str(sock.SOCKET_QUEUE.queue))
break
@ -303,5 +306,5 @@ def t_datac0_2(
sock.SOCKET_QUEUE.queue
), f"{item} found in {str(sock.SOCKET_QUEUE.queue)}"
assert '"arq":"session","status":"close"' in str(sock.SOCKET_QUEUE.queue)
assert '"arq":"session", "dxcallsign": "AA2BB-0", "status":"close"' in str(sock.SOCKET_QUEUE.queue)
log.warning("station2: Exiting!")

View file

@ -25,7 +25,7 @@ TNCPROCESS: subprocess.Popen
MYCALLSIGN: bytes = b"AA0AA"
MYCALLSIGN_CRC: bytes = b"A"
DXCALLSIGN: bytes = b"AA0AA"
DXCALLSIGN: bytes = b"ZZ9YY"
DXCALLSIGN_CRC: bytes = b"A"
MYGRID: bytes = b""