tests: quic enable per testcase timeout overrides 06/23806/4
authorPaul Vinciguerra <pvinci@vinciconsulting.com>
Thu, 5 Dec 2019 04:18:02 +0000 (23:18 -0500)
committerDave Wallace <dwallacelf@gmail.com>
Thu, 5 Dec 2019 16:22:13 +0000 (16:22 +0000)
Type: test

Change-Id: I4f8aee3efa53d58f96631fe2d2da5756304fb75a
Signed-off-by: Paul Vinciguerra <pvinci@vinciconsulting.com>
src/plugins/quic/test/test_quic.py

index 8b1dba4..152fa5e 100644 (file)
@@ -41,6 +41,11 @@ class QUICAppWorker(Worker):
 
 class QUICTestCase(VppTestCase):
     """ QUIC Test Case """
+
+    timeout = 20
+    pre_test_sleep = 0.3
+    post_test_sleep = 0.2
+
     @classmethod
     def setUpClass(cls):
         cls.extra_vpp_plugin_config.append("plugin quic_plugin.so { enable }")
@@ -53,10 +58,7 @@ class QUICTestCase(VppTestCase):
         if self.build_dir is None:
             raise Exception("Environment variable `%s' not set" % var)
         self.vppDebug = 'vpp_debug' in self.build_dir
-        self.timeout = 20
         self.vapi.session_enable_disable(is_enabled=1)
-        self.pre_test_sleep = 0.3
-        self.post_test_sleep = 0.2
 
         self.create_loopback_interfaces(2)
         self.uri = "quic://%s/1234" % self.loop0.local_ip4
@@ -265,6 +267,8 @@ class QUICEchoExtTestCase(QUICTestCase):
 
 class QUICEchoExtTransferTestCase(QUICEchoExtTestCase):
     """QUIC Echo External Transfer Test Case"""
+    timeout = 60
+
     def test_quic_ext_transfer(self):
         self.server()
         self.client()
@@ -274,6 +278,7 @@ class QUICEchoExtTransferTestCase(QUICEchoExtTestCase):
 class QUICEchoExtTransferBigTestCase(QUICEchoExtTestCase):
     """QUIC Echo External Transfer Big Test Case"""
     test_bytes = ''
+    timeout = 60
 
     @unittest.skipUnless(running_extended_tests, "part of extended tests")
     def test_quic_ext_transfer_big(self):