소스 검색

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)