Jelajahi Sumber

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

Chris McDonough 18 tahun lalu
induk
melakukan
d00724e1b4
1 mengubah file dengan 1 tambahan dan 1 penghapusan
  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)