From 43bc1954fa211640ab78d87b11530b954bdfb8ba Mon Sep 17 00:00:00 2001 From: Arvid Norberg Date: Sat, 25 Jan 2014 23:04:24 +0000 Subject: [PATCH] attempt to make test_priority more robust --- test/test_priority.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/test/test_priority.cpp b/test/test_priority.cpp index 0484db650..70596e18e 100644 --- a/test/test_priority.cpp +++ b/test/test_priority.cpp @@ -350,6 +350,10 @@ void test_transfer() std::copy(priorities.begin(), priorities.end(), std::ostream_iterator(std::cerr, ", ")); std::cerr << std::endl; + // drain alerts + print_alerts(ses1, "ses1", true, true, true, &on_alert); + print_alerts(ses2, "ses2", true, true, true, &on_alert); + peer_disconnects = 0; // this loop makes sure ses2 reconnects to the peer now that it's