Skip to content

Commit

Permalink
Add detailed comment and ensure presence is received
Browse files Browse the repository at this point in the history
  • Loading branch information
gustawlippa committed Dec 5, 2024
1 parent bf95a6a commit 5300f81
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions big_tests/tests/sm_SUITE.erl
Original file line number Diff line number Diff line change
Expand Up @@ -553,7 +553,7 @@ resend_unacked_on_reconnection(Config) ->
sm_helper:send_messages(Bob, User, Texts),
%% User receives the messages.
sm_helper:wait_for_messages(User, Texts),
%% User disconnects without acking the messages.
%% User disconnects ending stream gracefully, but without acking the messages.
sm_helper:stop_client_and_wait_for_termination(User),
%% Messages go to the offline store.
%% User receives the messages from the offline store.
Expand All @@ -562,7 +562,11 @@ resend_unacked_on_reconnection(Config) ->
sm_helper:wait_for_delayed_messages(NewUser, Texts),
%% User acks the delayed messages so they won't go again
%% to the offline store.
escalus_connection:send(NewUser, escalus_stanza:sm_ack(3)).
escalus_connection:send(NewUser, escalus_stanza:sm_ack(3)),
% user receives initial presence response
P = escalus:wait_for_stanza(NewUser),
escalus:assert(is_presence, P),
escalus_connection:stop(NewUser).

%% Remove wait_for_n_offline_messages and you will get anything, but preserve_order
%% TODO Test without wait_for_n_offline_messages. It would require changes in SM
Expand Down

0 comments on commit 5300f81

Please sign in to comment.