Gateway tests: handle async restart callback path

This commit is contained in:
joshavant 2026-02-22 15:53:14 -08:00 committed by Peter Steinberger
parent 1560f02561
commit 3dbb6be270
1 changed files with 2 additions and 1 deletions

View File

@ -281,7 +281,7 @@ describe("gateway hot reload", () => {
const signalSpy = vi.fn();
process.once("SIGUSR1", signalSpy);
onRestart?.(
const restartResult = onRestart?.(
{
changedPaths: ["gateway.port"],
restartGateway: true,
@ -297,6 +297,7 @@ describe("gateway hot reload", () => {
},
{},
);
await Promise.resolve(restartResult);
expect(signalSpy).toHaveBeenCalledTimes(1);
});