aboutsummaryrefslogtreecommitdiffstats
path: root/test/test_pg_stream.py
diff options
context:
space:
mode:
authorIvan Ivanets <iivanets@cisco.com>2025-03-27 15:53:04 +0200
committerIvan Ivanets <iivanets@cisco.com>2025-03-27 16:41:33 +0200
commit463335f7667f86934320ab51385d31fc86c36caa (patch)
tree92e27909aab73db98cdb6713fd24530ed5c52f7f /test/test_pg_stream.py
parent83219f96cdef4b08e2d6a2b8a1dca5bcb3f625f4 (diff)
tests: fix test cov for PG Stream and Session SDL
Type: test Localized cli response waiting time configuration only for test_pg_stream and test_session_sdl instead of asfframework conf Change-Id: Iabeccdda97e518662f1243edd91217c02cdc8711 Signed-off-by: Ivan Ivanets <iivanets@cisco.com>
Diffstat (limited to 'test/test_pg_stream.py')
-rw-r--r--test/test_pg_stream.py13
1 files changed, 13 insertions, 0 deletions
diff --git a/test/test_pg_stream.py b/test/test_pg_stream.py
index 471c85c43f0..915a5aa73d9 100644
--- a/test/test_pg_stream.py
+++ b/test/test_pg_stream.py
@@ -11,6 +11,7 @@ from scapy.layers.inet6 import IPv6
from framework import VppTestCase
from asfframework import VppTestRunner
+from config import config
class TestPgStream(VppTestCase):
@@ -19,6 +20,18 @@ class TestPgStream(VppTestCase):
def __init__(self, *args):
VppTestCase.__init__(self, *args)
+ @classmethod
+ def setUpClass(cls):
+ # increase vapi timeout, to avoid
+ # failures reported on test-cov
+ if config.gcov:
+ cls.vapi_response_timeout = 20
+ super(TestPgStream, cls).setUpClass()
+
+ @classmethod
+ def tearDownClass(cls):
+ super(TestPgStream, cls).tearDownClass()
+
def setUp(self):
super(TestPgStream, self).setUp()