Skip to content

Commit

Permalink
One more test case for #12888
Browse files Browse the repository at this point in the history
(cherry picked from commit 9b19539)
  • Loading branch information
michaelklishin authored and mergify[bot] committed Dec 4, 2024
1 parent 4896ad8 commit b791974
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions deps/rabbit_common/test/unit_SUITE.erl
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,8 @@ groups() ->
pid_decompose_compose,
platform_and_version,
frame_encoding_does_not_fail_with_empty_binary_payload,
map_exception_does_not_fail_with_unicode_explaination,
map_exception_does_not_fail_with_unicode_explaination_case1,
map_exception_does_not_fail_with_unicode_explaination_case2,
amqp_table_conversion,
name_type,
get_erl_path,
Expand Down Expand Up @@ -416,13 +417,20 @@ frame_encoding_does_not_fail_with_empty_binary_payload(_Config) ->
]],
ok.

map_exception_does_not_fail_with_unicode_explaination(_Config) ->
map_exception_does_not_fail_with_unicode_explaination_case1(_Config) ->
NonAsciiExplaination = "no queue 'non_ascii_name_😍_你好' in vhost '/'",
rabbit_binary_generator:map_exception(0,
#amqp_error{name = not_found, explanation = NonAsciiExplaination, method = 'queue.declare'},
rabbit_framing_amqp_0_9_1),
ok.

map_exception_does_not_fail_with_unicode_explaination_case2(_Config) ->
NonAsciiExplaination = "no queue 'кролик 🐰' in vhost '/'",
rabbit_binary_generator:map_exception(0,
#amqp_error{name = not_found, explanation = NonAsciiExplaination, method = 'queue.declare'},
rabbit_framing_amqp_0_9_1),
ok.

amqp_table_conversion(_Config) ->
assert_table(#{}, []),
assert_table(#{<<"x-expires">> => 1000},
Expand Down

0 comments on commit b791974

Please sign in to comment.