]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
tests: Do not dump pending monitor events after connection
authorJouni Malinen <quic_jouni@quicinc.com>
Fri, 3 Nov 2023 20:59:33 +0000 (22:59 +0200)
committerJouni Malinen <j@w1.fi>
Fri, 3 Nov 2023 20:59:33 +0000 (22:59 +0200)
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>
tests/hwsim/wpasupplicant.py

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