test: fix a disturbed test environment `$mqtt_sub_caps`

This commit is contained in:
JimMoen 2023-01-12 11:12:49 +08:00
parent 002a3a4e75
commit 7b76982be9
No known key found for this signature in database
GPG Key ID: 87A520B4F76BA86D
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},
emqx_mqtt_caps:check_sub(ClientInfo, <<"topic">>, SubOpts#{share => true}))
after
emqx_zone:unset_env(zone, '$mqtt_pub_caps')
emqx_zone:unset_env(zone, '$mqtt_sub_caps')
end.