tests: fix broken test test_gtpu.py TestGtpuUDP 15/20015/3
authorPaul Vinciguerra <pvinci@vinciconsulting.com>
Thu, 6 Jun 2019 22:01:07 +0000 (18:01 -0400)
committerPaul Vinciguerra <pvinci@vinciconsulting.com>
Fri, 7 Jun 2019 00:09:40 +0000 (00:09 +0000)
Test failing due to call to super.tearDown in setUp.

==============================================================================
FAIL: test UDP ports
------------------------------------------------------------------------------
Traceback (most recent call last):
  File "/vpp/test/test_gtpu.py", line 77, in test_udp_port
    self._check_udp_port_ip4(False)
  File "/vpp/test/test_gtpu.py", line 48, in _check_udp_port_ip4
    self.assertEqual(err, self.ip4_err + 1)
AssertionError: 0L != 1

Type: fix

Change-Id: Iec4ef5edd3ee11bcd962b77cc8159dee9cb15687
Signed-off-by: Paul Vinciguerra <pvinci@vinciconsulting.com>
test/test_gtpu.py

index 9f3c090..23f1bd8 100644 (file)
@@ -17,7 +17,7 @@ class TestGtpuUDP(VppTestCase):
     """ GTPU UDP ports Test Case """
 
     def setUp(self):
-        super(TestGtpuUDP, self).tearDown()
+        super(TestGtpuUDP, self).setUp()
 
         self.dport = 2152