Skip to content

Evenfire is an intelligence layer platform for running LLM agents that take real actions, on your infrastructure

TypeScript

test(desktop-app): use fake- token fixtures in the sandbox-ui service tests

Diego Zacarias13621682a26d
diff --git a/desktop-app/src/__tests__/appService.sandboxUiLifecycle.test.ts b/desktop-app/src/__tests__/appService.sandboxUiLifecycle.test.ts
index 0de5f800a..3ca9c99d1 100644
--- a/desktop-app/src/__tests__/appService.sandboxUiLifecycle.test.ts
+++ b/desktop-app/src/__tests__/appService.sandboxUiLifecycle.test.ts
@@ -139,7 +139,7 @@ vi.mock('../sandboxUiPartitionGc.js', () => ({
// real RpcProxyClient below.
vi.mock('../rpcTokenManager.js', () => ({
RpcTokenManager: class {
- getOrIssue = vi.fn(async () => ({ token: 'rpc-token' }))
+ getOrIssue = vi.fn(async () => ({ token: 'fake-rpc-token' }))
clear = vi.fn()
getMetadata = vi.fn(() => ({ expiresAtMs: null, scopes: [], hostRefs: [] }))
},
diff --git a/desktop-app/src/__tests__/appService.sandboxUiRpcTokenRetry.test.ts b/desktop-app/src/__tests__/appService.sandboxUiRpcTokenRetry.test.ts
index 6606c2053..7129f0264 100644
--- a/desktop-app/src/__tests__/appService.sandboxUiRpcTokenRetry.test.ts
+++ b/desktop-app/src/__tests__/appService.sandboxUiRpcTokenRetry.test.ts
@@ -96,7 +96,7 @@ beforeEach(() => {
mocks.getOrIssue
.mockResolvedValueOnce({ token: 'stale' })
.mockResolvedValueOnce({ token: 'fresh' })
- .mockResolvedValue({ token: 'unexpected-third' })
+ .mockResolvedValue({ token: 'fake-unexpected-third' })
vi.stubGlobal('fetch', fetchMock)
})