def test_accept_small_start_time_skews(self, kill_mock):
"""
The boot time isn't very precise, so accept small skews in the
computed process start time.
"""
self.manager.add(self.signaller)
self.builder.create_data(100, self.builder.RUNNING,
uid=1000, gid=1000, started_after_boot=10,
process_name="ooga")
self.manager.dispatch_message(
{"type": "signal-process",
"operation-id": 1,
"pid": 100, "name": "ooga",
"start-time": 21, "signal": "KILL"})
kill_mock.assert_called_once_with(100, signal.SIGKILL)
test_processkiller.py 文件源码
python
阅读 20
收藏 0
点赞 0
评论 0
评论列表
文章目录