Skip to content

Commit f5babd0

Browse files
committed
test(qa): await gateway startup before network probes
1 parent 0f7724a commit f5babd0

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

‎test/e2e/qa-lab/runtime/gateway-loopback-lan-access.ts‎

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -309,12 +309,16 @@ async function probeTcpUnreachable(params: {
309309
}
310310

311311
async function startGateway(port: number, bind: "lan" | "loopback", token: string) {
312-
return await startGatewayServer(port, {
312+
const server = await startGatewayServer(port, {
313313
auth: { mode: "token", token },
314314
bind,
315315
controlUiEnabled: false,
316316
sidecarStartup: "defer",
317317
});
318+
// HTTP attachment precedes mandatory sidecar settlement. Network probes own
319+
// a fully admitted generation, not the intentional startup-unavailable phase.
320+
await server.startupSettled;
321+
return server;
318322
}
319323

320324
async function stopGateway(server: GatewayServer | undefined): Promise<void> {

0 commit comments

Comments
 (0)