@@ -333,7 +333,7 @@ def test_get_state(self):
333
333
supervisord = self ._makeOne (options )
334
334
self .assertEqual (supervisord .get_state (), SupervisorStates .RUNNING )
335
335
336
- def test_diff_add_remove (self ):
336
+ def test_diff_to_active_added_and_removed (self ):
337
337
options = DummyOptions ()
338
338
supervisord = self ._makeOne (options )
339
339
@@ -375,7 +375,7 @@ def test_diff_add_remove(self):
375
375
self .assertEqual (changed , [])
376
376
self .assertEqual (removed , [group1 ])
377
377
378
- def test_diff_changed (self ):
378
+ def test_diff_to_active_changed (self ):
379
379
from supervisor .options import ProcessConfig , ProcessGroupConfig
380
380
381
381
options = DummyOptions ()
@@ -440,7 +440,7 @@ def make_gconfig(name, pconfigs):
440
440
self .assertEqual ([added , removed ], [[], []])
441
441
self .assertEqual (changed , [group1 ])
442
442
443
- def test_diff_changed_eventlistener (self ):
443
+ def test_diff_to_active_changed_eventlistener (self ):
444
444
from supervisor .events import EventTypes
445
445
from supervisor .options import EventListenerConfig , EventListenerPoolConfig
446
446
@@ -478,7 +478,7 @@ def make_econfig(*pool_event_names):
478
478
def make_gconfig (name , pconfigs , pool_events , result_handler = 'supervisor.dispatchers:default_handler' ):
479
479
return EventListenerPoolConfig (options , name , 25 , pconfigs , 10 , pool_events , result_handler )
480
480
481
- # Test that changing an event listener command causes the diff_to_activate
481
+ # Test that changing an eventlistener's command is detected by diff_to_active
482
482
pconfig = make_pconfig ('process1' , 'process1-new' )
483
483
econfig = make_econfig ("TICK_60" )
484
484
group1 = make_gconfig ('group1' , [pconfig ], econfig )
@@ -503,7 +503,7 @@ def make_gconfig(name, pconfigs, pool_events, result_handler='supervisor.dispatc
503
503
self .assertEqual ([added , removed ], [[], []])
504
504
self .assertEqual (changed , [group1 ])
505
505
506
- # Test that changing the event triggers diff_to_activate
506
+ # Test that changing an eventlistener's event is detected by diff_to_active
507
507
options = DummyOptions ()
508
508
supervisord = self ._makeOne (options )
509
509
@@ -531,7 +531,7 @@ def make_gconfig(name, pconfigs, pool_events, result_handler='supervisor.dispatc
531
531
self .assertEqual ([added , removed ], [[], []])
532
532
self .assertEqual (changed , [group1 ])
533
533
534
- # Test that changing the result_handler triggers diff_to_activate
534
+ # Test that changing an eventlistener's result_handler is detected by diff_to_active
535
535
options = DummyOptions ()
536
536
supervisord = self ._makeOne (options )
537
537
0 commit comments