Gateway tests: handle async restart callback path
This commit is contained in:
committed by
Peter Steinberger
parent
1560f02561
commit
3dbb6be270
@@ -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);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user