diff --git a/src/controller/python/test/test_scripts/base.py b/src/controller/python/test/test_scripts/base.py index cab2f665ffe65d..ca4c30a4a5a93b 100644 --- a/src/controller/python/test/test_scripts/base.py +++ b/src/controller/python/test/test_scripts/base.py @@ -931,11 +931,7 @@ async def OnResubscriptionSucceeded(transaction): def TestCloseSession(self, nodeid: int): self.logger.info(f"Closing sessions with device {nodeid}") try: - err = self.devCtrl.CloseSession(nodeid) - if err != 0: - self.logger.exception( - f"Failed to close sessions with device {nodeid}: {err}") - return False + self.devCtrl.CloseSession(nodeid) return True except Exception as ex: self.logger.exception(