MCPcopy
hub / github.com/rueckstiess/mtools / test_kill_default

Method test_kill_default

mtools/test/test_mlaunch.py:435–444  ·  view source on GitHub ↗

mlaunch: test killing all nodes with default signal.

(self)

Source from the content-addressed store, hash-verified

433 assert all(not self.tool.is_running(node) for node in nodes)
434
435 def test_kill_default(self):
436 """mlaunch: test killing all nodes with default signal."""
437
438 # start sharded cluster and kill with default signal (15)
439 self.run_tool("init --sharded 2 --single")
440 self.run_tool("kill")
441
442 # make sure all nodes are down
443 nodes = self.tool.get_tagged('all')
444 assert all(not self.tool.is_running(node) for node in nodes)
445
446 def test_kill_sigterm(self):
447 """mlaunch: test killing all nodes with SIGTERM."""

Callers

nothing calls this directly

Calls 3

run_toolMethod · 0.95
get_taggedMethod · 0.80
is_runningMethod · 0.80

Tested by

no test coverage detected