Skip to content

Commit 9b19539

Browse files
One more test case for #12888
1 parent ee41983 commit 9b19539

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

deps/rabbit_common/test/unit_SUITE.erl

+10-2
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,8 @@ groups() ->
4646
pid_decompose_compose,
4747
platform_and_version,
4848
frame_encoding_does_not_fail_with_empty_binary_payload,
49-
map_exception_does_not_fail_with_unicode_explaination,
49+
map_exception_does_not_fail_with_unicode_explaination_case1,
50+
map_exception_does_not_fail_with_unicode_explaination_case2,
5051
amqp_table_conversion,
5152
name_type,
5253
get_erl_path,
@@ -416,13 +417,20 @@ frame_encoding_does_not_fail_with_empty_binary_payload(_Config) ->
416417
]],
417418
ok.
418419

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

427+
map_exception_does_not_fail_with_unicode_explaination_case2(_Config) ->
428+
NonAsciiExplaination = "no queue 'кролик 🐰' in vhost '/'",
429+
rabbit_binary_generator:map_exception(0,
430+
#amqp_error{name = not_found, explanation = NonAsciiExplaination, method = 'queue.declare'},
431+
rabbit_framing_amqp_0_9_1),
432+
ok.
433+
426434
amqp_table_conversion(_Config) ->
427435
assert_table(#{}, []),
428436
assert_table(#{<<"x-expires">> => 1000},

0 commit comments

Comments
 (0)