66
77-compile (export_all ).
88
9+ % % Unicode U+1F407
10+ -define (UNICODE_STRING , " bunny🐇bunny" ).
11+
912all () ->
1013 [
1114 {group , queues }
@@ -34,8 +37,7 @@ end_per_suite(Config) ->
3437
3538init_per_group (Group , Config0 ) ->
3639 PrivDir0 = ? config (priv_dir , Config0 ),
37- % % Put unicode char U+1F407 in directory name
38- PrivDir = filename :join (PrivDir0 , " bunny🐇bunny" ),
40+ PrivDir = filename :join (PrivDir0 , ? UNICODE_STRING ),
3941 ok = file :make_dir (PrivDir ),
4042 Config = rabbit_ct_helpers :set_config (Config0 , [{priv_dir , PrivDir },
4143 {rmq_nodename_suffix , Group }]),
@@ -69,7 +71,8 @@ quorum_queue(Config) ->
6971 ok = queue (Config , ? FUNCTION_NAME , [{<<" x-queue-type" >>, longstr , <<" quorum" >>}]).
7072
7173queue (Config , QName0 , Args ) ->
72- QName = rabbit_data_coercion :to_binary (QName0 ),
74+ QName1 = rabbit_data_coercion :to_binary (QName0 ),
75+ QName = <<QName1 /binary , ? UNICODE_STRING /utf8 >>,
7376 Server = rabbit_ct_broker_helpers :get_node_config (Config , 0 , nodename ),
7477 Ch = rabbit_ct_client_helpers :open_channel (Config , Server ),
7578 amqp_channel :call (Ch , # 'queue.declare' {queue = QName ,
@@ -85,7 +88,8 @@ queue(Config, QName0, Args) ->
8588stream (Config ) ->
8689 ok = rabbit_ct_broker_helpers :enable_feature_flag (Config , stream_queue ),
8790 Server = rabbit_ct_broker_helpers :get_node_config (Config , 0 , nodename ),
88- ConsumerTag = QName = atom_to_binary (? FUNCTION_NAME ),
91+ ConsumerTag = QName0 = atom_to_binary (? FUNCTION_NAME ),
92+ QName = <<QName0 /binary , ? UNICODE_STRING /utf8 >>,
8993 Ch = rabbit_ct_client_helpers :open_channel (Config , Server ),
9094 amqp_channel :call (Ch , # 'queue.declare' {queue = QName ,
9195 durable = true ,
0 commit comments