]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
tests: persistent_go_client_list: Ignore client order
authorJohannes Berg <johannes.berg@intel.com>
Mon, 25 Sep 2023 07:20:43 +0000 (09:20 +0200)
committerJouni Malinen <j@w1.fi>
Sat, 28 Oct 2023 09:08:20 +0000 (12:08 +0300)
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>
tests/hwsim/test_p2p_persistent.py

index c1610d2d444d507b5f861605cb392fcd71cd4793..d81c845722b71be3aff6d3e010c8b9d67b335132 100644 (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()