From 9e7f00ad0c7d048a0c68e31cc303325339a12ac9 Mon Sep 17 00:00:00 2001 From: Kamil Kisiela Date: Tue, 18 Oct 2022 11:31:37 +0200 Subject: [PATCH] Update usage.spec.ts --- packages/libraries/client/tests/usage.spec.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/libraries/client/tests/usage.spec.ts b/packages/libraries/client/tests/usage.spec.ts index dcdafb3ef..eae2bb49b 100644 --- a/packages/libraries/client/tests/usage.spec.ts +++ b/packages/libraries/client/tests/usage.spec.ts @@ -186,7 +186,7 @@ test('should send data to Hive', async () => { expect(operation.operationMapKey).toEqual(key); expect(operation.timestamp).toEqual(expect.any(Number)); // execution - expect(operation.execution.duration).toBeGreaterThanOrEqual(2000 * 1_000_000); // >=2000ms in microseconds + expect(operation.execution.duration).toBeGreaterThanOrEqual(1500 * 1_000_000); // >=1500ms in microseconds expect(operation.execution.duration).toBeLessThan(3000 * 1_000_000); // <3000ms expect(operation.execution.errorsTotal).toBe(0); expect(operation.execution.errors).toHaveLength(0); @@ -282,7 +282,7 @@ test('should send data to Hive (deprecated endpoint)', async () => { expect(operation.operationMapKey).toEqual(key); expect(operation.timestamp).toEqual(expect.any(Number)); // execution - expect(operation.execution.duration).toBeGreaterThanOrEqual(2000 * 1_000_000); // >=2000ms in microseconds + expect(operation.execution.duration).toBeGreaterThanOrEqual(1500 * 1_000_000); // >=1500ms in microseconds expect(operation.execution.duration).toBeLessThan(3000 * 1_000_000); // <3000ms expect(operation.execution.errorsTotal).toBe(0); expect(operation.execution.errors).toHaveLength(0);