tests: persistent_go_client_list: Ignore client order

Clients could connect in a different order depending on
timing differences, don't check for the order here.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
This commit is contained in:
Johannes Berg 2023-09-25 09:20:43 +02:00 committed by Jouni Malinen
parent 434d557bc3
commit 376bead963

View file

@ -337,7 +337,7 @@ def test_persistent_go_client_list(dev):
raise Exception("Timeout on group restart (on client)")
dev[1].group_form_result(ev)
clients = dev[0].global_request("GET_NETWORK " + id + " p2p_client_list").rstrip()
if clients != addr1 + " " + addr2:
if set(clients.split()) != set((addr1, addr2)):
raise Exception("Unexpected p2p_client_list entry(4): " + clients)
dev[2].remove_group()