mirror of
https://github.com/DJ2LS/FreeDATA
synced 2024-05-14 08:04:33 +00:00
Repair chat_text test
This commit is contained in:
parent
c08d84ad90
commit
94df494041
3 changed files with 5 additions and 7 deletions
|
@ -103,7 +103,7 @@ def analyze_results(station1: list, station2: list, call_list: list):
|
||||||
@pytest.mark.parametrize("freedv_mode", ["datac1", "datac3"])
|
@pytest.mark.parametrize("freedv_mode", ["datac1", "datac3"])
|
||||||
@pytest.mark.parametrize("n_frames_per_burst", [1]) # Higher fpb is broken.
|
@pytest.mark.parametrize("n_frames_per_burst", [1]) # Higher fpb is broken.
|
||||||
@pytest.mark.parametrize("message_no", range(len(messages)))
|
@pytest.mark.parametrize("message_no", range(len(messages)))
|
||||||
# @pytest.mark.flaky(reruns=2)
|
@pytest.mark.flaky(reruns=2)
|
||||||
def test_chat_text(
|
def test_chat_text(
|
||||||
freedv_mode: str, n_frames_per_burst: int, message_no: int, tmp_path
|
freedv_mode: str, n_frames_per_burst: int, message_no: int, tmp_path
|
||||||
):
|
):
|
||||||
|
|
|
@ -60,7 +60,7 @@ def t_setup(
|
||||||
tnc.time_list_high_bw = [3, 1, 1]
|
tnc.time_list_high_bw = [3, 1, 1]
|
||||||
tnc.time_list = [3, 1, 1]
|
tnc.time_list = [3, 1, 1]
|
||||||
# Limit number of retries
|
# Limit number of retries
|
||||||
tnc.rx_n_max_retries_per_burst = 4
|
tnc.rx_n_max_retries_per_burst = 5
|
||||||
|
|
||||||
# Create the modem
|
# Create the modem
|
||||||
t_modem = modem.RF()
|
t_modem = modem.RF()
|
||||||
|
@ -141,8 +141,6 @@ def t_highsnr_arq_short_station1(
|
||||||
],
|
],
|
||||||
}
|
}
|
||||||
|
|
||||||
sock.process_tnc_commands(json.dumps(data, indent=None))
|
|
||||||
time.sleep(0.5)
|
|
||||||
sock.process_tnc_commands(json.dumps(data, indent=None))
|
sock.process_tnc_commands(json.dumps(data, indent=None))
|
||||||
|
|
||||||
# Assure the test completes.
|
# Assure the test completes.
|
||||||
|
@ -174,7 +172,7 @@ def t_highsnr_arq_short_station1(
|
||||||
|
|
||||||
# log.info("S1 DQT: ", DQ_Tx=pformat(tnc.data_queue_transmit.queue))
|
# log.info("S1 DQT: ", DQ_Tx=pformat(tnc.data_queue_transmit.queue))
|
||||||
# log.info("S1 DQR: ", DQ_Rx=pformat(tnc.data_queue_received.queue))
|
# log.info("S1 DQR: ", DQ_Rx=pformat(tnc.data_queue_received.queue))
|
||||||
# log.info("S1 Socket: ", socket_queue=pformat(sock.SOCKET_QUEUE.queue))
|
log.info("S1 Socket: ", socket_queue=pformat(sock.SOCKET_QUEUE.queue))
|
||||||
|
|
||||||
assert '"arq":"transmission","status":"transmitting"' in str(
|
assert '"arq":"transmission","status":"transmitting"' in str(
|
||||||
sock.SOCKET_QUEUE.queue
|
sock.SOCKET_QUEUE.queue
|
||||||
|
|
|
@ -57,7 +57,7 @@ def t_setup(
|
||||||
tnc.time_list_high_bw = [1, 1, 1]
|
tnc.time_list_high_bw = [1, 1, 1]
|
||||||
tnc.time_list = [1, 1, 1]
|
tnc.time_list = [1, 1, 1]
|
||||||
# Limit number of retries
|
# Limit number of retries
|
||||||
tnc.rx_n_max_retries_per_burst = 4
|
tnc.rx_n_max_retries_per_burst = 5
|
||||||
|
|
||||||
# Create the modem
|
# Create the modem
|
||||||
t_modem = modem.RF()
|
t_modem = modem.RF()
|
||||||
|
@ -148,7 +148,7 @@ def t_highsnr_arq_short_station2(
|
||||||
|
|
||||||
# log.info("S2 DQT: ", DQ_Tx=pformat(tnc.data_queue_transmit.queue))
|
# log.info("S2 DQT: ", DQ_Tx=pformat(tnc.data_queue_transmit.queue))
|
||||||
# log.info("S2 DQR: ", DQ_Rx=pformat(tnc.data_queue_received.queue))
|
# log.info("S2 DQR: ", DQ_Rx=pformat(tnc.data_queue_received.queue))
|
||||||
# log.info("S2 Socket: ", socket_queue=pformat(sock.SOCKET_QUEUE.queue))
|
log.info("S2 Socket: ", socket_queue=pformat(sock.SOCKET_QUEUE.queue))
|
||||||
|
|
||||||
assert '"arq":"transmission","status":"received"' in str(sock.SOCKET_QUEUE.queue)
|
assert '"arq":"transmission","status":"received"' in str(sock.SOCKET_QUEUE.queue)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue