From 87c5f91a74a38e5f61539fad666426e846486c87 Mon Sep 17 00:00:00 2001 From: Martin Stein Date: Sun, 20 Feb 2022 10:46:25 +0100 Subject: [PATCH] test/black_hole: test link-state change at uplink Ref #4419 --- repos/os/src/test/black_hole/main.cc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/repos/os/src/test/black_hole/main.cc b/repos/os/src/test/black_hole/main.cc index 7933f45422..5f2ac15bff 100644 --- a/repos/os/src/test/black_hole/main.cc +++ b/repos/os/src/test/black_hole/main.cc @@ -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