chore: fix outdate tests
This commit is contained in:
parent
0633d894b8
commit
5e0a3606ad
|
@ -97,8 +97,6 @@ t_send_request_api(_) ->
|
||||||
?assertEqual(Payload, RPayload)
|
?assertEqual(Payload, RPayload)
|
||||||
end,
|
end,
|
||||||
Test("gateways/coap/clients/client1/request"),
|
Test("gateways/coap/clients/client1/request"),
|
||||||
timer:sleep(100),
|
|
||||||
Test("gateway/coap/clients/client1/request"),
|
|
||||||
erlang:exit(ClientId, kill),
|
erlang:exit(ClientId, kill),
|
||||||
ok.
|
ok.
|
||||||
|
|
||||||
|
|
|
@ -306,7 +306,7 @@ t_observe(Config) ->
|
||||||
test_recv_mqtt_response(RespTopic),
|
test_recv_mqtt_response(RespTopic),
|
||||||
|
|
||||||
%% step2, call observe API
|
%% step2, call observe API
|
||||||
?assertMatch({204, []}, call_deprecated_send_api(Epn, "observe", "path=/3/0/1&enable=false")),
|
?assertMatch({204, []}, call_send_api(Epn, "observe", "path=/3/0/1&enable=false")),
|
||||||
timer:sleep(100),
|
timer:sleep(100),
|
||||||
#coap_message{type = Type, method = Method, options = Opts} = test_recv_coap_request(UdpSock),
|
#coap_message{type = Type, method = Method, options = Opts} = test_recv_coap_request(UdpSock),
|
||||||
?assertEqual(con, Type),
|
?assertEqual(con, Type),
|
||||||
|
@ -328,9 +328,6 @@ call_lookup_api(ClientId, Path, Action) ->
|
||||||
call_send_api(ClientId, Cmd, Query) ->
|
call_send_api(ClientId, Cmd, Query) ->
|
||||||
call_send_api(ClientId, Cmd, Query, "gateways/lwm2m/clients").
|
call_send_api(ClientId, Cmd, Query, "gateways/lwm2m/clients").
|
||||||
|
|
||||||
call_deprecated_send_api(ClientId, Cmd, Query) ->
|
|
||||||
call_send_api(ClientId, Cmd, Query, "gateway/lwm2m/clients").
|
|
||||||
|
|
||||||
call_send_api(ClientId, Cmd, Query, API) ->
|
call_send_api(ClientId, Cmd, Query, API) ->
|
||||||
ApiPath = emqx_mgmt_api_test_util:api_path([API, ClientId, Cmd]),
|
ApiPath = emqx_mgmt_api_test_util:api_path([API, ClientId, Cmd]),
|
||||||
Auth = emqx_mgmt_api_test_util:auth_header_(),
|
Auth = emqx_mgmt_api_test_util:auth_header_(),
|
||||||
|
|
Loading…
Reference in New Issue