Add an uncatchable kill method to the python MemgraphInstanceRunner for testing abrupt failures (#405)
This commit is contained in:
parent
df1485aeec
commit
1fb49c4865
@ -106,3 +106,10 @@ class MemgraphInstanceRunner:
|
|||||||
self.proc_mg.terminate()
|
self.proc_mg.terminate()
|
||||||
code = self.proc_mg.wait()
|
code = self.proc_mg.wait()
|
||||||
assert code == 0, "The Memgraph process exited with non-zero!"
|
assert code == 0, "The Memgraph process exited with non-zero!"
|
||||||
|
|
||||||
|
def kill(self):
|
||||||
|
if not self.is_running():
|
||||||
|
return
|
||||||
|
self.proc_mg.kill()
|
||||||
|
code = self.proc_mg.wait()
|
||||||
|
assert code == 9, "The killed Memgraph process exited with non-nine!"
|
||||||
|
Loading…
Reference in New Issue
Block a user