@@ -112,7 +112,7 @@ end_per_testcase(Testcase, Config) ->
112112% % -------------------------------------------------------------------
113113
114114coerce_configuration_data (Config ) ->
115- C = connect (<< " simpleClientRetainer " >> , Config , [{ack_timeout , 1 }]),
115+ C = connect (atom_to_binary ( ? FUNCTION_NAME ) , Config , [{ack_timeout , 1 }]),
116116
117117 {ok , _ , _ } = emqtt :subscribe (C , <<" TopicA" >>, qos0 ),
118118 ok = emqtt :publish (C , <<" TopicA" >>, <<" Payload" >>),
@@ -126,7 +126,7 @@ coerce_configuration_data(Config) ->
126126% % sent messages for the translated topic (TopicA/Device/Field)
127127% % -------------------------------------------------------------------
128128should_translate_amqp2mqtt_on_publish (Config ) ->
129- C = connect (<< " simpleClientRetainer " >> , Config , [{ack_timeout , 1 }]),
129+ C = connect (atom_to_binary ( ? FUNCTION_NAME ) , Config , [{ack_timeout , 1 }]),
130130 % % there's an active consumer
131131 {ok , _ , _ } = emqtt :subscribe (C , <<" TopicA/Device.Field" >>, qos1 ),
132132 ok = emqtt :publish (C , <<" TopicA/Device.Field" >>, #{}, <<" Payload" >>, [{retain , true }]),
@@ -139,7 +139,7 @@ should_translate_amqp2mqtt_on_publish(Config) ->
139139% % sent the retained message for the translated topic (TopicA/Device/Field)
140140% % -------------------------------------------------------------------
141141should_translate_amqp2mqtt_on_retention (Config ) ->
142- C = connect (<< " simpleClientRetainer " >> , Config , [{ack_timeout , 1 }]),
142+ C = connect (atom_to_binary ( ? FUNCTION_NAME ) , Config , [{ack_timeout , 1 }]),
143143 % % publish with retain = true before a consumer comes around
144144 ok = emqtt :publish (C , <<" TopicA/Device.Field" >>, #{}, <<" Payload" >>, [{retain , true }]),
145145 {ok , _ , _ } = emqtt :subscribe (C , <<" TopicA/Device.Field" >>, qos1 ),
@@ -152,14 +152,14 @@ should_translate_amqp2mqtt_on_retention(Config) ->
152152% % sent retained message for the translated topic (TopicA/Device/Field)
153153% % -------------------------------------------------------------------
154154should_translate_amqp2mqtt_on_retention_search (Config ) ->
155- C = connect (<< " simpleClientRetainer " >> , Config , [{ack_timeout , 1 }]),
155+ C = connect (atom_to_binary ( ? FUNCTION_NAME ) , Config , [{ack_timeout , 1 }]),
156156 ok = emqtt :publish (C , <<" TopicA/Device.Field" >>, #{}, <<" Payload" >>, [{retain , true }]),
157157 {ok , _ , _ } = emqtt :subscribe (C , <<" TopicA/Device/Field" >>, qos1 ),
158158 ok = expect_publishes (C , <<" TopicA/Device/Field" >>, [<<" Payload" >>]),
159159 ok = emqtt :disconnect (C ).
160160
161161does_not_retain (Config ) ->
162- C = connect (<< " simpleClientRetainer " >> , Config , [{ack_timeout , 1 }]),
162+ C = connect (atom_to_binary ( ? FUNCTION_NAME ) , Config , [{ack_timeout , 1 }]),
163163 ok = emqtt :publish (C , <<" TopicA/Device.Field" >>, #{}, <<" Payload" >>, [{retain , true }]),
164164 {ok , _ , _ } = emqtt :subscribe (C , <<" TopicA/Device.Field" >>, qos1 ),
165165 receive
0 commit comments