@@ -209,7 +209,6 @@ open_close_connection(Config) ->
209209 {amqp10_event , {connection , Connection2 , opened }} -> ct :log (" connection opened" ), ok
210210 after 5000 -> exit (connection_timeout )
211211 end ,
212- ct :log (" Closing connection ..." ),
213212 ok = amqp10_client :close_connection (Connection2 ),
214213 ct :log (" Closed connection ." ).
215214
@@ -277,7 +276,7 @@ open_connection_plain_sasl_failure(Config) ->
277276 ok = amqp10_client :close_connection (Connection ).
278277
279278basic_roundtrip (Config ) ->
280- application :start (sasl ),
279+ application :start (sasl ),
281280 Hostname = ? config (rmq_hostname , Config ),
282281 Port = rabbit_ct_broker_helpers :get_node_config (Config , 0 , tcp_port_amqp ),
283282 OpenConf = #{address => Hostname , port => Port , sasl => ? config (sasl , Config )},
@@ -389,7 +388,6 @@ roundtrip(OpenConf, Args) ->
389388 properties => #{}
390389 },
391390 {ok , Sender } = amqp10_client :attach_link (Session , SenderAttachArgs ),
392- % %await_link(Sender, credited, link_credit_timeout),
393391 await_link (Sender , attached , attached_timeout ),
394392
395393 Now = os :system_time (millisecond ),
@@ -427,7 +425,8 @@ roundtrip(OpenConf, Args) ->
427425
428426 % ct:pal(?LOW_IMPORTANCE, "roundtrip message Out: ~tp~nIn: ~tp~n", [OutMsg, Msg]),
429427 ActualProps = amqp10_msg :properties (OutMsg ),
430- [ ? assertEqual (V , maps :get (K , ActualProps )) || K := V <- Props , K =/= creation_time ],
428+ % [ ?assertEqual(V, maps:get(K, ActualProps)) || K := V <- Props, K =/= creation_time],
429+ [ ? assertEqual (V , maps :get (K , ActualProps )) || K := V <- Props ],
431430
432431 ? assertEqual (#{<<" a_key" >> => <<" a_value" >>}, amqp10_msg :application_properties (OutMsg )),
433432 ActualMessageAnnotations = amqp10_msg :message_annotations (OutMsg ),
@@ -437,17 +436,14 @@ roundtrip(OpenConf, Args) ->
437436 ok .
438437
439438filtered_roundtrip (OpenConf ) ->
440- filtered_roundtrip (OpenConf , []).
441-
442- filtered_roundtrip (OpenConf , Args ) ->
443- Body = proplists :get_value (body , Args , <<" banana" >>),
444- Destination = proplists :get_value (destination , Args , <<" test1" >>),
439+ filtered_roundtrip (OpenConf , <<" test1" >>).
445440
441+ filtered_roundtrip (OpenConf , Body ) ->
446442 {ok , Connection } = amqp10_client :open_connection (OpenConf ),
447443 {ok , Session } = amqp10_client :begin_session (Connection ),
448444 {ok , Sender } = amqp10_client :attach_sender_link (Session ,
449445 <<" default-sender" >>,
450- Destination ,
446+ << " test1 " >> ,
451447 settled ,
452448 unsettled_state ),
453449 await_link (Sender , credited , link_credit_timeout ),
0 commit comments