test-ndntraffic: test case for testing ndn-traffic-generator
Change-Id: I117f38a206f0ae2a9d1d994f17884ae22e2c2f12
refs: #1387
diff --git a/test_ndntlvping/test_ndntlvping.py b/test_ndntlvping/test_ndntlvping.py
index fbe1690..8cc3c4d 100644
--- a/test_ndntlvping/test_ndntlvping.py
+++ b/test_ndntlvping/test_ndntlvping.py
@@ -10,7 +10,7 @@
import unittest
import process_manager
-class test_ndntlvping(unittest.TestCase, process_manager.process_manager):
+class test_ndntlvping(unittest.TestCase, process_manager.ProcessManager):
"""Test case for testing ndn-tlv-ping application"""
def setUp(self):
@@ -21,6 +21,7 @@
self.killNfd()
self.killProcess("ndnpingserver")
self.killProcess("ndnping")
+ self.cleanupProcesses()
def test_ping(self):
self.startNfd()
@@ -33,9 +34,6 @@
time.sleep(1)
self.waitForProcessCompletion("ndnping", 10)
self.waitForProcessCompletion("ndnpingserver", 10)
- self.killProcess("ndnping")
- self.killProcess("ndnpingserver")
- self.killNfd()
if self.hasProcessCompleted("ndnping"):
if self.getProcessReturnCode("ndnping") != 0:
print self.getProcessError("ndnping")