Skip to content

Commit

Permalink
Use connect_same in kill_and_connect_with_resume_session_without_wait…
Browse files Browse the repository at this point in the history
…ing_for_result
  • Loading branch information
arcusfelis committed Dec 14, 2021
1 parent f202966 commit a2a6e31
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions big_tests/tests/sm_SUITE.erl
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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),
Expand Down

0 comments on commit a2a6e31

Please sign in to comment.