diff --git a/test/test_ssl.cpp b/test/test_ssl.cpp index 5d2d7cec2..064e9afeb 100644 --- a/test/test_ssl.cpp +++ b/test/test_ssl.cpp @@ -514,6 +514,7 @@ void test_malicious_peer() , "test"); wait_for_listen(ses1, "ses1"); + wait_for_alert(ses1, torrent_finished_alert::alert_type); for (int i = 0; i < num_attacks; ++i) {