From c34e808b23558e623204c6ab1614d674dafda977 Mon Sep 17 00:00:00 2001 From: William Yang Date: Fri, 12 Jan 2024 21:11:58 +0100 Subject: [PATCH] test: fix unreachable code in tc --- test/quicer_listener_SUITE.erl | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/test/quicer_listener_SUITE.erl b/test/quicer_listener_SUITE.erl index 2cb2c483..f3c1dc13 100644 --- a/test/quicer_listener_SUITE.erl +++ b/test/quicer_listener_SUITE.erl @@ -551,8 +551,8 @@ tc_listener_conf_reload(Config) -> receive {quic, <<"ping_from_conn_2">>, Stream2Remote, _} -> ok after 2000 -> - ct:fail("nothing from conn 2"), - quicer_test_lib:report_unhandled_messages() + quicer_test_lib:report_unhandled_messages(), + ct:fail("nothing from conn 2") end, gen_server:stop(ClientConnPid), quicer_listener:stop_listener(QuicApp). @@ -632,8 +632,8 @@ tc_listener_conf_reload_listen_on(Config) -> receive {quic, <<"ping_from_conn_2">>, Stream2Remote, _} -> ok after 2000 -> - ct:fail("nothing from conn 2"), - quicer_test_lib:report_unhandled_messages() + quicer_test_lib:report_unhandled_messages(), + ct:fail("nothing from conn 2") end, gen_server:stop(ClientConnPid), quicer_listener:stop_listener(QuicApp). @@ -714,8 +714,8 @@ tc_listener_conf_reload_listen_on_neg(Config) -> receive {quic, <<"ping_from_conn_2">>, Stream2Remote, _} -> ok after 2000 -> - ct:fail("nothing from conn 2"), - quicer_test_lib:report_unhandled_messages() + quicer_test_lib:report_unhandled_messages(), + ct:fail("nothing from conn 2") end, quicer_listener:stop_listener(QuicApp).