tests: Do not dump pending monitor events after connection

connect_network() tried to make test log more readable with a
dump_monitor() call at the end of the function. However, this could end
up practically dropping an event that arrives more or less immediately
after CTRL-EVENT-CONNECTED. This could happen with UML time travel,
e.g., in suite_b_192_pmksa_caching_roam.

Signed-off-by: Jouni Malinen <quic_jouni@quicinc.com>
This commit is contained in:
Jouni Malinen 2023-11-03 22:59:33 +02:00 committed by Jouni Malinen
parent 7fbd391138
commit 69be335a5d

View file

@ -504,7 +504,6 @@ class WpaSupplicant:
self.dump_monitor() self.dump_monitor()
self.select_network(id) self.select_network(id)
self.wait_connected(timeout=timeout) self.wait_connected(timeout=timeout)
self.dump_monitor()
def get_status(self, extra=None): def get_status(self, extra=None):
if extra: if extra: