aboutsummaryrefslogtreecommitdiffstats
path: root/host/tests
diff options
context:
space:
mode:
Diffstat (limited to 'host/tests')
-rw-r--r--host/tests/pytests/test_streaming.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/host/tests/pytests/test_streaming.py b/host/tests/pytests/test_streaming.py
index f0bb6f1d2..553e7608f 100644
--- a/host/tests/pytests/test_streaming.py
+++ b/host/tests/pytests/test_streaming.py
@@ -306,7 +306,7 @@ def test_streaming(pytestconfig, dut_type, use_dpdk, dual_SFP, rate, rx_rate, rx
if not use_dpdk:
pytest.xfail(overrun_error_text)
else:
- pytest.fail(overrun_error_text)
+ assert False, overrun_error_text
if tx_channels:
assert stats.avg_vals.tx_timeouts <= tx_timeouts_threshold, \
@@ -326,7 +326,7 @@ def test_streaming(pytestconfig, dut_type, use_dpdk, dual_SFP, rate, rx_rate, rx
if not use_dpdk:
pytest.xfail(underrun_error_text)
else:
- pytest.fail(underrun_error_text)
+ assert False, underrun_error_text
assert stats.avg_vals.late_cmds <= late_cmds_threshold, \
f"""Number of late commands exceeded threshold.