From 69be335a5da166768c759c5bbab0f112a2db4f95 Mon Sep 17 00:00:00 2001 From: Jouni Malinen Date: Fri, 3 Nov 2023 22:59:33 +0200 Subject: [PATCH] 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 --- tests/hwsim/wpasupplicant.py | 1 - 1 file changed, 1 deletion(-) diff --git a/tests/hwsim/wpasupplicant.py b/tests/hwsim/wpasupplicant.py index ba372e523..d52536980 100644 --- a/tests/hwsim/wpasupplicant.py +++ b/tests/hwsim/wpasupplicant.py @@ -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: