commands_tests: Better check for the disco item node instead of name

This commit is contained in:
Badlop
2026-01-12 18:08:08 +01:00
parent 96a1b16099
commit 6d74bef73b
+1 -2
View File
@@ -203,8 +203,7 @@ page(Config, Tail) ->
adhoc_list_commands(Config) ->
{ok, Result} = get_items(Config, <<"api-commands">>),
{value, #disco_item{name = <<"command_test_binary">>}} =
lists:keysearch(<<"command_test_binary">>, #disco_item.name, Result),
true = lists:keymember(<<"api-commands/command_test_binary">>, #disco_item.node, Result),
suite:disconnect(Config).
get_items(Config, Node) ->