From a2a6e313112572f24bb07d6f3b9d05400c1179b4 Mon Sep 17 00:00:00 2001 From: Mikhail Uvarov Date: Tue, 14 Dec 2021 17:02:38 +0100 Subject: [PATCH] Use connect_same in kill_and_connect_with_resume_session_without_waiting_for_result --- big_tests/tests/sm_SUITE.erl | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/big_tests/tests/sm_SUITE.erl b/big_tests/tests/sm_SUITE.erl index c9707cb399..d8c6685eb1 100644 --- a/big_tests/tests/sm_SUITE.erl +++ b/big_tests/tests/sm_SUITE.erl @@ -261,7 +261,7 @@ client_enables_sm_twice_fails_with_correct_error_stanza(Config) -> escalus_connection:get_stanza(Alice, enable_sm_failed)), escalus:assert(is_stream_end, escalus_connection:get_stanza(Alice, enable_sm_failed)), - true = escalus_connection:wait_for_close(Alice,timer:seconds(5)). + true = escalus_connection:wait_for_close(Alice, timer:seconds(5)). session_resumed_then_old_session_is_closed_gracefully_with_correct_error_stanza(Config) -> %% GIVEN USER WITH STREAM RESUMPTION ENABLED @@ -1344,8 +1344,7 @@ stop_client_and_wait_for_termination(Alice) -> kill_and_connect_with_resume_session_without_waiting_for_result(Alice) -> SMH = escalus_connection:get_sm_h(Alice), - AliceSpec = client_to_spec(Alice), - {ok, NewAlice, _} = escalus_connection:start(AliceSpec, connection_steps_to_authenticate()), + NewAlice = connect_same(Alice, auth), SMID = client_to_smid(Alice), %% kill alice connection escalus_connection:kill(Alice),