test: fix tc t_handle_outing_non_utf8_topic

This commit is contained in:
William Yang 2024-06-13 19:40:12 +02:00
parent d39b8caff9
commit b86d631744
1 changed files with 1 additions and 1 deletions

View File

@ -338,7 +338,7 @@ t_handle_outing_non_utf8_topic(_) ->
StrictOff = #{version => 5, max_size => 16#FFFF, strict_mode => false},
StOff = st(#{serialize => StrictOff}),
OffResult = emqx_connection:handle_outgoing(Publish, StOff),
?assertMatch(ok, OffResult),
?assertMatch({ok, _}, OffResult),
StrictOn = #{version => 5, max_size => 16#FFFF, strict_mode => true},
StOn = st(#{serialize => StrictOn}),
?assertError(frame_serialize_error, emqx_connection:handle_outgoing(Publish, StOn)).