Fixed test cases for emqttd_router_SUITE
This commit is contained in:
parent
9f1c3a5899
commit
4c52d99706
2
Makefile
2
Makefile
|
@ -27,7 +27,7 @@ dep_cuttlefish = git https://github.com/emqtt/cuttlefish
|
|||
|
||||
TEST_DEPS = emqttc emq_dashboard
|
||||
dep_emqttc = git https://github.com/emqtt/emqttc
|
||||
dep_emq_dashboard = git https://github.com/emqtt/emq_dashboard
|
||||
dep_emq_dashboard = git https://github.com/emqtt/emq_dashboard develop
|
||||
|
||||
TEST_ERLC_OPTS += +debug_info
|
||||
TEST_ERLC_OPTS += +'{parse_transform, lager_transform}'
|
||||
|
|
|
@ -328,7 +328,10 @@ router_print(_) ->
|
|||
#mqtt_route{topic = <<"#">>, node = node()},
|
||||
#mqtt_route{topic = <<"+/#">>, node = node()}],
|
||||
lists:foreach(fun(R) -> emqttd_router:add_route(R) end, Routes),
|
||||
emqttd_router:print(<<"a/b/c">>).
|
||||
emqttd_router:print(<<"a/b/c">>),
|
||||
emqttd_router:del_route(<<"+/#">>),
|
||||
emqttd_router:del_route(<<"a/b/c">>),
|
||||
emqttd_router:del_route(<<"#">>).
|
||||
|
||||
router_unused(_) ->
|
||||
gen_server:call(emqttd_router, bad_call),
|
||||
|
@ -598,6 +601,7 @@ conflict_listeners(_) ->
|
|||
L = proplists:get_value("mqtt:tcp:0.0.0.0:1883", Listeners),
|
||||
?assertEqual(1, proplists:get_value(current_clients, L)),
|
||||
?assertEqual(1, proplists:get_value(conflict, proplists:get_value(shutdown_count, L))),
|
||||
timer:sleep(100),
|
||||
emqttc:disconnect(C2).
|
||||
|
||||
cli_vm(_) ->
|
||||
|
|
Loading…
Reference in New Issue