test/black_hole: test link-state change at uplink

Ref #4419
This commit is contained in:
Martin Stein 2022-02-20 10:46:25 +01:00 committed by Christian Helmuth
parent fa3a195077
commit 87c5f91a74

View File

@ -168,7 +168,7 @@ class Black_hole_test::Uplink_test
void _submit_pkts()
{
for (; _nr_of_sent_pkts < 40; _nr_of_sent_pkts++) {
for (; _nr_of_sent_pkts < 30; _nr_of_sent_pkts++) {
if (!_connection->tx()->ready_to_submit()) {
class Submit_queue_full { };
@ -225,6 +225,9 @@ class Black_hole_test::Uplink_test
_nr_of_acked_pkts++;
}
_submit_pkts();
_reconstruct_connection();
_nr_of_sent_pkts = 0;
_submit_pkts();
}
bool finished() const