Skip to content

Commit 0f766f5

Browse files
committed
Fix exit code for spawn error
1 parent 7e41702 commit 0f766f5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

supervisor/tests/test_supervisorctl.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -821,7 +821,7 @@ def test_start_spawnerror(self):
821821
self.assertEqual(result, None)
822822
self.assertEqual(plugin.ctl.stdout.getvalue(),
823823
'SPAWN_ERROR: ERROR (spawn error)\n')
824-
self.assertEqual(plugin.ctl.exit_status, LSBInitErrorCode.GENERIC)
824+
self.assertEqual(plugin.ctl.exit_status, LSBInitErrorCode.NOT_RUNNING)
825825

826826
def test_start_abnormaltermination(self):
827827
plugin = self._makeOne()

0 commit comments

Comments
 (0)