The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.
Rust agent-orchestrationai-agentsai-assistantdesktopllmlocal-firstmcppersonal-aiprivacyrustsecond-braintauri
test(gatewayService): tighten activation test to not leak credentials
Steven Enamakelaf85fe75dbdf
diff --git a/app/src/services/__tests__/gatewayService.test.ts b/app/src/services/__tests__/gatewayService.test.tsindex 67973c0f90..6ba132baad 100644--- a/app/src/services/__tests__/gatewayService.test.ts+++ b/app/src/services/__tests__/gatewayService.test.ts@@ -143,14 +143,10 @@ describe('mutating and activating', () => {expect(invoke).toHaveBeenCalledWith('gateway_delete', { id: 'builder' });});- it('returns the endpoint the shell resolved', async () => {- invoke.mockResolvedValue({ id: 'builder', rpcUrl: 'http://127.0.0.1:54321/rpc', token: 'b' });+ it('acknowledges an activation without exposing credentials to the renderer', async () => {+ invoke.mockResolvedValue(undefined);- await expect(activateGateway('builder')).resolves.toEqual({- id: 'builder',- rpcUrl: 'http://127.0.0.1:54321/rpc',- token: 'b',- });+ await expect(activateGateway('builder')).resolves.toBeUndefined();expect(invoke).toHaveBeenCalledWith('gateway_activate', { id: 'builder' });});