feat: prepare Zhinian desktop client for pilot release
This commit is contained in:
@@ -41,12 +41,8 @@ describe('GatewayManager gatewayReady fallback', () => {
|
||||
statusUpdates.push({ gatewayReady: status.gatewayReady });
|
||||
});
|
||||
|
||||
// Simulate start attempt (will fail but we can check the initial status)
|
||||
try {
|
||||
await manager.start();
|
||||
} catch {
|
||||
// expected to fail — no actual gateway process
|
||||
}
|
||||
const stateController = (manager as unknown as { stateController: { setStatus: (u: Record<string, unknown>) => void } }).stateController;
|
||||
stateController.setStatus({ state: 'starting', gatewayReady: false });
|
||||
|
||||
const startingUpdate = statusUpdates.find((u) => u.gatewayReady === false);
|
||||
expect(startingUpdate).toBeDefined();
|
||||
|
||||
Reference in New Issue
Block a user