aboutsummaryrefslogtreecommitdiffstats
path: root/test/test_punt.py
diff options
context:
space:
mode:
authorDave Wallace <dwallacelf@gmail.com>2021-05-06 15:59:59 -0400
committerDamjan Marion <dmarion@me.com>2021-05-06 21:16:08 +0000
commitf4d338f0b44e28d9ad5b446422caf15fd871c8cd (patch)
tree3c7c2b6d9bed7374387cf5256a2ca2763bd56a64 /test/test_punt.py
parent2e5544f3533d619d404d1309678f78b5693feab2 (diff)
tests: fix race condition in punt tests
Type: fix Signed-off-by: Dave Wallace <dwallacelf@gmail.com> Change-Id: I6cb13e044bbb966cbb61802094e96220d3a0c951
Diffstat (limited to 'test/test_punt.py')
-rwxr-xr-x[-rw-r--r--]test/test_punt.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/test_punt.py b/test/test_punt.py
index c6d6dbc5140..bc2196eee1f 100644..100755
--- 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):