Skip to content

Commit 5d2244a

Browse files
committed
Add comments on blocking/privacy IQ edge cases
1 parent 09ba2fc commit 5d2244a

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

Diff for: big_tests/tests/mod_blocking_SUITE.erl

+2
Original file line numberDiff line numberDiff line change
@@ -410,6 +410,8 @@ blocker_cant_send_to_blockee(Config) ->
410410
client_gets_blocking_error(User1)
411411
end).
412412

413+
%% This test checks an edge case where a blocking IQ is sent to another user
414+
%% This isn't allowed by the XEP, but the test ensures MIM handles it correctly
413415
iq_with_to_attribute_is_treated_as_regular_one(Config) ->
414416
escalus:fresh_story(
415417
Config, [{alice, 1}, {bob, 1}, {kate, 1}],

Diff for: big_tests/tests/privacy_SUITE.erl

+2
Original file line numberDiff line numberDiff line change
@@ -637,6 +637,8 @@ iq_reply_doesnt_crash_user_process(Config) ->
637637
<<"Hello, Alice">>)
638638
end).
639639

640+
%% This test checks an edge case where a privacy IQ is sent to another user
641+
%% This isn't allowed by the XEP, but the test ensures MIM handles it correctly
640642
iq_with_to_attribute_is_treated_as_regular_one(Config) ->
641643
escalus:fresh_story(
642644
Config, [{alice, 1}, {bob, 1}, {kate, 1}],

0 commit comments

Comments
 (0)