From feb2efd443f41a00c512ee40ef4350cd91da4faf Mon Sep 17 00:00:00 2001 From: Andrey Sitnik Date: Sun, 25 Aug 2024 20:53:01 +0000 Subject: [PATCH] Stabilize tests --- bind-backend-proxy/index.test.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bind-backend-proxy/index.test.ts b/bind-backend-proxy/index.test.ts index 3ab9a84..a4bd72a 100644 --- a/bind-backend-proxy/index.test.ts +++ b/bind-backend-proxy/index.test.ts @@ -459,13 +459,13 @@ it('notifies about actions and subscriptions', async () => { app.on('backendGranted', (action, meta, latency) => { expect(typeof action.type).toEqual('string') expect(typeof meta.id).toEqual('string') - expect(latency > 1 && latency < 500).toBe(true) + expect(latency > 1 && latency < 800).toBe(true) events.push('backendGranted') }) app.on('backendProcessed', (action, meta, latency) => { expect(typeof action.type).toEqual('string') expect(typeof meta.id).toEqual('string') - expect(latency > 1 && latency < 500).toBe(true) + expect(latency > 1 && latency < 800).toBe(true) events.push('backendProcessed') }) let client = await app.connect('10', { headers: { lang: 'fr' } })