From bc12899ef8700b14dc205a747921e302d6c1542c Mon Sep 17 00:00:00 2001 From: firest Date: Mon, 29 Aug 2022 16:04:42 +0800 Subject: [PATCH] fix(gateway): fix coap test case error --- apps/emqx_gateway/test/emqx_coap_SUITE.erl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/emqx_gateway/test/emqx_coap_SUITE.erl b/apps/emqx_gateway/test/emqx_coap_SUITE.erl index eac23a202..e672e2d59 100644 --- a/apps/emqx_gateway/test/emqx_coap_SUITE.erl +++ b/apps/emqx_gateway/test/emqx_coap_SUITE.erl @@ -333,14 +333,14 @@ t_on_offline_event(_) -> emqx_hooks:add('client.connected', {emqx_sys, on_client_connected, []}, 1000), emqx_hooks:add('client.disconnected', {emqx_sys, on_client_disconnected, []}, 1000), - ConnectedSub = <<"$SYS/brokers/+/gateways/coap/clients/+/connected">>, + ConnectedSub = <<"$SYS/brokers/+/gateway/coap/clients/+/connected">>, emqx_broker:subscribe(ConnectedSub), timer:sleep(100), Token = connection(Channel), ?assertMatch(#message{}, receive_deliver(500)), - DisconnectedSub = <<"$SYS/brokers/+/gateways/coap/clients/+/disconnected">>, + DisconnectedSub = <<"$SYS/brokers/+/gateway/coap/clients/+/disconnected">>, emqx_broker:subscribe(DisconnectedSub), timer:sleep(100),