Merge pull request #9731 from JimMoen/0112-fix-test-env

test: fix a disturbed test environment `$mqtt_sub_caps`
This commit is contained in:
JimMoen 2023-01-13 03:41:41 +08:00 committed by GitHub
commit eb13c316cd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -62,5 +62,5 @@ t_check_sub(_) ->
?assertEqual({error, ?RC_SHARED_SUBSCRIPTIONS_NOT_SUPPORTED}, ?assertEqual({error, ?RC_SHARED_SUBSCRIPTIONS_NOT_SUPPORTED},
emqx_mqtt_caps:check_sub(ClientInfo, <<"topic">>, SubOpts#{share => true})) emqx_mqtt_caps:check_sub(ClientInfo, <<"topic">>, SubOpts#{share => true}))
after after
emqx_zone:unset_env(zone, '$mqtt_pub_caps') emqx_zone:unset_env(zone, '$mqtt_sub_caps')
end. end.