This commit is contained in:
Arjun Komath
2026-04-25 12:23:25 +10:00
parent 2bfe9f0608
commit 772e14efc2
3 changed files with 1 additions and 14 deletions
+1 -8
View File
@@ -1,9 +1,4 @@
export function canServeGatewayRequest({
configured,
hasProcessHandle,
starting,
reachable,
}) {
export function canServeGatewayRequest({ configured, reachable }) {
if (!configured) return false;
return reachable;
}
@@ -16,8 +11,6 @@ export function describeGatewayHealth({
}) {
const serving = canServeGatewayRequest({
configured,
hasProcessHandle,
starting,
reachable,
});
return {
-4
View File
@@ -10,8 +10,6 @@ test("serves gateway requests when a detached gateway is reachable", () => {
assert.equal(
canServeGatewayRequest({
configured: true,
hasProcessHandle: false,
starting: false,
reachable: true,
}),
true,
@@ -40,8 +38,6 @@ test("does not serve gateway requests while configured gateway is unreachable",
assert.equal(
canServeGatewayRequest({
configured: true,
hasProcessHandle: false,
starting: false,
reachable: false,
}),
false,
-2
View File
@@ -1444,8 +1444,6 @@ app.use(async (req, res) => {
if (
!canServeGatewayRequest({
configured: true,
hasProcessHandle: isGatewayReady(),
starting: isGatewayStarting(),
reachable: gatewayReachable,
})
) {