Skip to content

The agent that grows with you

test: use constant in log assertion instead of hardcoded 75

kshitij04d82221158a
diff --git a/tests/gateway/test_gateway_shutdown.py b/tests/gateway/test_gateway_shutdown.py
index 21debe894c7..367c550e409 100644
--- a/tests/gateway/test_gateway_shutdown.py
+++ b/tests/gateway/test_gateway_shutdown.py
@@ -56,7 +56,7 @@ def test_cron_provider_stop_cannot_override_gateway_exit_code(caplog):
gateway_run._stop_cron_provider(provider)
provider.stop.assert_called_once_with()
- assert "attempted to exit the gateway with code 75; ignoring" in caplog.text
+ assert f"attempted to exit the gateway with code {GATEWAY_SERVICE_RESTART_EXIT_CODE}; ignoring" in caplog.text
@pytest.mark.asyncio