Quellcode durchsuchen

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

Chris McDonough vor 18 Jahren
Ursprung
Commit
d00724e1b4
1 geänderte Dateien mit 1 neuen und 1 gelöschten Zeilen
  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)