From f4d338f0b44e28d9ad5b446422caf15fd871c8cd Mon Sep 17 00:00:00 2001 From: Dave Wallace Date: Thu, 6 May 2021 15:59:59 -0400 Subject: tests: fix race condition in punt tests Type: fix Signed-off-by: Dave Wallace Change-Id: I6cb13e044bbb966cbb61802094e96220d3a0c951 --- test/test_punt.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) mode change 100644 => 100755 test/test_punt.py (limited to 'test/test_punt.py') diff --git a/test/test_punt.py b/test/test_punt.py old mode 100644 new mode 100755 index c6d6dbc5140..bc2196eee1f --- a/test/test_punt.py +++ b/test/test_punt.py @@ -83,6 +83,7 @@ class serverSocketThread(threading.Thread): def close(self): self.sock.close() self.keep_running = False + threading.Thread.join(self) return self.rx_pkts @@ -131,7 +132,6 @@ class TestPuntSocket(VppTestCase): rx_pkts = [] for thread in self.sock_servers: rx_pkts += thread.close() - thread.join() return rx_pkts def verify_port(self, pr, vpr): -- cgit 1.2.3-korg