mirror of
https://github.com/DJ2LS/FreeDATA
synced 2024-05-14 08:04:33 +00:00
attempt fixing ctests
This commit is contained in:
parent
966198a9c3
commit
03d4cce4a7
3 changed files with 7 additions and 4 deletions
|
@ -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!")
|
||||
|
|
|
@ -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!")
|
||||
|
|
|
@ -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""
|
||||
|
|
Loading…
Reference in a new issue