python tests: broker: support stopping using SIGKILL

This commit is contained in:
Christian Schwarz
2024-01-09 15:11:03 +00:00
parent 9bdbca0c02
commit 2c9b3c941c

View File

@@ -54,7 +54,10 @@ class NeonBroker:
else:
break # success
def stop(self):
def stop(self, immediate: bool = False):
if self.handle is not None:
self.handle.terminate()
if immediate:
self.handle.kill()
else:
self.handle.terminate()
self.handle.wait()