diff --git a/src/gateway/gateway-cli-backend.connect.test.ts b/src/gateway/gateway-cli-backend.connect.test.ts index 290edd28cda..adb7578569e 100644 --- a/src/gateway/gateway-cli-backend.connect.test.ts +++ b/src/gateway/gateway-cli-backend.connect.test.ts @@ -136,9 +136,7 @@ describe("gateway cli backend connect", () => { const health = await client.request("health", undefined, { timeoutMs: 1_000, }); - expect(health).toMatchObject({ - ok: true, - }); + expect(health.ok).toBe(true); expect(server.requests).toEqual(["connect", "health"]); } finally { await client?.stopAndWait({ timeoutMs: 1_000 }).catch(() => {}); diff --git a/src/gateway/server.silent-scope-upgrade-reconnect.poc.test.ts b/src/gateway/server.silent-scope-upgrade-reconnect.poc.test.ts index 1aa92d20424..a84a963b0e7 100644 --- a/src/gateway/server.silent-scope-upgrade-reconnect.poc.test.ts +++ b/src/gateway/server.silent-scope-upgrade-reconnect.poc.test.ts @@ -250,15 +250,14 @@ describe("gateway silent scope-upgrade reconnect", () => { }); try { - await expect( - callGateway({ - url: `ws://127.0.0.1:${started.port}`, - token: "secret", - method: "health", - scopes: ["operator.admin"], - timeoutMs: 2_000, - }), - ).resolves.toMatchObject({ ok: true }); + const health = await callGateway({ + url: `ws://127.0.0.1:${started.port}`, + token: "secret", + method: "health", + scopes: ["operator.admin"], + timeoutMs: 2_000, + }); + expect(health.ok).toBe(true); const paired = await getPairedDevice(identity.deviceId); expect(paired?.approvedScopes).toEqual(["operator.read"]);