Skip to content

Commit

Permalink
Change assertions for SQL error stanza
Browse files Browse the repository at this point in the history
  • Loading branch information
jacekwegr committed Jun 21, 2024
1 parent 462890f commit 35dfa47
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions big_tests/tests/mam_SUITE.erl
Original file line number Diff line number Diff line change
Expand Up @@ -1891,8 +1891,8 @@ muc_light_sql_query_failed(Config) ->
then_muc_light_message_is_received_by([Alice], M1),
mam_helper:wait_for_room_archive_size(muc_light_host(), Room, 2),
when_archive_query_is_sent(Alice, muc_light_helper:room_bin_jid(Room), Config),
Res = escalus:wait_for_stanza(Alice),
escalus:assert(is_iq_error, Res)
Error = escalus:wait_for_stanza(Alice),
escalus:assert(is_error, [<<"wait">>, <<"internal-server-error">>], Error)
end).

pm_failed_to_decode_message_in_database(Config) ->
Expand All @@ -1912,8 +1912,8 @@ pm_sql_query_failed(Config) ->
escalus:send(Alice, escalus_stanza:chat_to(Bob, <<"OH, HAI!">>)),
mam_helper:wait_for_archive_size(Alice, 1),
when_archive_query_is_sent(Alice, undefined, Config),
Res = escalus:wait_for_stanza(Alice),
escalus:assert(is_iq_error, Res)
Error = escalus:wait_for_stanza(Alice),
escalus:assert(is_error, [<<"wait">>, <<"internal-server-error">>], Error)
end).

retrieve_form_fields(ConfigIn) ->
Expand Down

0 comments on commit 35dfa47

Please sign in to comment.