summaryrefslogtreecommitdiffstats
path: root/src/tests/vnet/session/quic_echo.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/tests/vnet/session/quic_echo.c')
-rw-r--r--src/tests/vnet/session/quic_echo.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tests/vnet/session/quic_echo.c b/src/tests/vnet/session/quic_echo.c
index c125d3be94c..af6666193f6 100644
--- a/src/tests/vnet/session/quic_echo.c
+++ b/src/tests/vnet/session/quic_echo.c
@@ -614,8 +614,8 @@ recv_data_chunk (echo_main_t * em, echo_session_t * s, u8 * rx_buf)
n_to_read -= n_read;
s->bytes_received += n_read;
+ ASSERT (s->bytes_to_receive >= n_read);
s->bytes_to_receive -= n_read;
- ASSERT (s->bytes_to_receive >= 0);
}
else
break;