diff --git a/mobile/src/transport/mobile-relay-rpc-session.test.ts b/mobile/src/transport/mobile-relay-rpc-session.test.ts index 40f54646ddb..2cb835fa7dd 100644 --- a/mobile/src/transport/mobile-relay-rpc-session.test.ts +++ b/mobile/src/transport/mobile-relay-rpc-session.test.ts @@ -346,7 +346,7 @@ describe('mobile relay RPC session', () => { JSON.stringify({ id: timedOutRequest.id, ok: true, result: {}, _meta: {} }) ) - await vi.advanceTimersByTimeAsync(8_000) + await vi.advanceTimersByTimeAsync(16_500) expect(session.getState()).toBe('connected') expect(fakes.close).not.toHaveBeenCalled() } finally { @@ -817,7 +817,7 @@ describe('mobile relay RPC session', () => { fakes.linkOptions!.onText( JSON.stringify({ id: timedOutRequest.id, ok: true, result: {}, _meta: {} }) ) - await vi.advanceTimersByTimeAsync(8_000) + await vi.advanceTimersByTimeAsync(16_500) expect(session.getState()).toBe('connected') expect(fakes.close).not.toHaveBeenCalled() diff --git a/mobile/src/transport/rpc-client-request-deadline.test.ts b/mobile/src/transport/rpc-client-request-deadline.test.ts index d2fd4705384..207427c1032 100644 --- a/mobile/src/transport/rpc-client-request-deadline.test.ts +++ b/mobile/src/transport/rpc-client-request-deadline.test.ts @@ -240,7 +240,7 @@ describe('mobile rpc-client request deadline', () => { expect(sentRequest(socket, 'status.get')).toBeDefined() socket.receive(`encrypted:${JSON.stringify({ id: timedOutRequest.id, ok: true, result: {} })}`) - await vi.advanceTimersByTimeAsync(8_000) + await vi.advanceTimersByTimeAsync(16_500) expect(socket.close).not.toHaveBeenCalled() expect(client.getState()).toBe('connected') @@ -265,7 +265,7 @@ describe('mobile rpc-client request deadline', () => { client.notifyForeground() socket.receive(`encrypted:${JSON.stringify({ id: timedOutRequest.id, ok: true, result: {} })}`) - await vi.advanceTimersByTimeAsync(8_000) + await vi.advanceTimersByTimeAsync(16_500) expect(socket.close).not.toHaveBeenCalled() expect(client.getState()).toBe('connected') @@ -392,7 +392,7 @@ describe('mobile rpc-client request deadline', () => { expect(sentRequests(socket, 'status.get')).toHaveLength(2) socket.receive(`encrypted:${JSON.stringify({ id: stalledRequest.id, ok: true, result: {} })}`) - await vi.advanceTimersByTimeAsync(8_000) + await vi.advanceTimersByTimeAsync(16_500) expect(client.getState()).toBe('connected') expect(socket.close).not.toHaveBeenCalled() client.close() @@ -420,7 +420,7 @@ describe('mobile rpc-client request deadline', () => { expect(sentRequests(socket, 'status.get')).toHaveLength(2) socket.receive(`encrypted:${JSON.stringify({ id: firstProbe.id, ok: true, result: {} })}`) - await vi.advanceTimersByTimeAsync(8_000) + await vi.advanceTimersByTimeAsync(16_500) expect(client.getState()).toBe('connected') expect(socket.close).not.toHaveBeenCalled() client.close()