diff --git a/test/OBSW_UnitTest.py b/test/OBSW_UnitTest.py index c4a4714619e761e9ed2429b1d5485484a05974b2..e62c82796c21d9409c82c170e76a8c17a1427402 100644 --- a/test/OBSW_UnitTest.py +++ b/test/OBSW_UnitTest.py @@ -80,13 +80,14 @@ class TestService(unittest.TestCase): # This function should be called in each individual test to send the actual telecommands # which are stored inside testQueue def performTestingAndGenerateAssertionDict(self): + # Maybe we should instantiate this once in the main and then reuse it instead of calling the constructor + # over and over again. UnitTester = MultipleCommandSenderReceiver( comInterface=self.communicationInterface, tmtcPrinter=self.tmtcPrinter, tmListener=self.tmListener, tcQueue=self.testQueue, tmTimeout=self.tmTimeout, waitIntervals=self.waitIntervals, waitTime=self.waitTime, printTm=self.printTm, tcTimeoutFactor=self.tcTimeoutFactor, doPrintToFile=self.printFile) (tcInfoQueue, tmInfoQueue) = UnitTester.sendTcQueueAndReturnInfo() assertionDict = self.analyseTmTcInfo(tmInfoQueue, tcInfoQueue) - # UnitTester.clearListenerTmInfoQueue() return assertionDict def analyseTmTcInfo(self, tmInfoQueue: pusTmInfoQueueT, tcInfoQueue: pusTcInfoQueueT) -> dict: