chore(rebalance test): fix API tests

This commit is contained in:
Ilya Averyanov 2023-07-07 17:57:52 +03:00
parent 9bb159cf1e
commit aba52c6a25
1 changed files with 2 additions and 2 deletions

View File

@ -192,7 +192,7 @@ t_start_stop_evacuation(Config) ->
[{DonorNode, _}, {RecipientNode, _}] = ?config(cluster_nodes, Config),
StartOpts = maps:merge(
emqx_node_rebalance_api:rebalance_evacuation_example(),
maps:get(evacuation, emqx_node_rebalance_api:rebalance_evacuation_example()),
#{migrate_to => [atom_to_binary(RecipientNode)]}
),
@ -295,7 +295,7 @@ t_start_stop_rebalance(Config) ->
StartOpts = maps:without(
[nodes],
emqx_node_rebalance_api:rebalance_example()
maps:get(rebalance, emqx_node_rebalance_api:rebalance_example())
),
?assertMatch(