浏览代码

Subscribe the generic Event type instead of StoppingFromStarting to test properly.

Chris McDonough 18 年之前
父节点
当前提交
d00724e1b4
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/supervisor/tests/test_process.py

+ 1 - 1
src/supervisor/tests/test_process.py

@@ -599,7 +599,7 @@ class SubprocessTests(unittest.TestCase):
         L = []
         from supervisor.states import ProcessStates
         from supervisor import events
-        events.subscribe(events.StoppingFromStartingEvent,lambda x: L.append(x))
+        events.subscribe(events.Event,lambda x: L.append(x))
         from supervisor.process import ProcessStates
         instance.state = ProcessStates.STOPPING
         instance.kill(signal.SIGKILL)