tests: Use global control interface in wait_go_ending_session()

P2P_EVENT_GROUP_REMOVED is a global event, so use
wait_global_event() instead of wait_event().

Signed-off-by: Ilan Peer <ilan.peer@intel.com>
This commit is contained in:
Ilan Peer 2015-02-04 04:30:13 -05:00 committed by Jouni Malinen
parent 644b24c6bb
commit b0d697be91

View file

@ -646,7 +646,7 @@ class WpaSupplicant:
except:
pass
self.gctrl_mon = None
ev = self.wait_event(["P2P-GROUP-REMOVED"], timeout=3)
ev = self.wait_global_event(["P2P-GROUP-REMOVED"], timeout=3)
if ev is None:
raise Exception("Group removal event timed out")
if "reason=GO_ENDING_SESSION" not in ev: