Skip to content

Commit 398fffd

Browse files
Fixing CR comments
1 parent 32151fb commit 398fffd

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

Diff for: big_tests/tests/graphql_sse_SUITE.erl

+9-2
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ all() ->
2121
groups() ->
2222
[{admin, [parallel], admin_tests()},
2323
{user, [parallel], user_tests()},
24-
{timeout, [], [sse_should_not_get_timeout]}].
24+
{timeout, [parallel], [sse_should_not_get_timeout, sse_works_with_long_messages]}].
2525

2626
init_per_suite(Config) ->
2727
Config1 = escalus:init_per_suite(Config),
@@ -145,7 +145,14 @@ sse_should_not_get_timeout(Config) ->
145145
timer:sleep(2000),
146146
escalus:send(Bob, escalus_stanza:chat(From, To, <<"Hello again!">>)),
147147
sse_helper:wait_for_event(Stream),
148-
timer:sleep(2000),
148+
sse_helper:stop_sse(Stream)
149+
end).
150+
151+
sse_works_with_long_messages(Config) ->
152+
escalus:fresh_story(Config, [{alice, 1}, {bob, 1}], fun (Alice, Bob) ->
153+
From = escalus_client:full_jid(Bob),
154+
To = escalus_client:short_jid(Alice),
155+
{200, Stream} = graphql_helper:execute_user_command_sse(<<"stanza">>, <<"subscribeForMessages">>, Alice, #{}, Config),
149156
Message = binary:copy(<<"0">>, 2000),
150157
escalus:send(Bob, escalus_stanza:chat(From, To, Message)),
151158
sse_helper:wait_for_event(Stream),

0 commit comments

Comments
 (0)