From 1a06293c62ad769564f82d1842f0fe603e24c962 Mon Sep 17 00:00:00 2001 From: Maha Benzekri Date: Wed, 8 Jan 2025 17:42:59 +0100 Subject: [PATCH] fixup --- tests/functional/v2/warp10/testClient.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/functional/v2/warp10/testClient.js b/tests/functional/v2/warp10/testClient.js index 6a3ef0d7..fd12a8a1 100644 --- a/tests/functional/v2/warp10/testClient.js +++ b/tests/functional/v2/warp10/testClient.js @@ -44,10 +44,10 @@ describe('Test Warp Client', () => { const ev = generateFakeEvents(startTime, endTime, 100); const count = await warp10.ingest({ className }, ev); let fetchResp = await warp10.fetch({ className, start: endTime, stop: startTime }); - assert.strictEqual(fetchResp.result[0].length, 1); + assert.strictEqual(fetchResp.result.length, 1); assert.strictEqual(fetchResp.result[0].v.length, count); await warp10.delete({ className, start: startTime, end: endTime }); fetchResp = await warp10.fetch({ className, start: endTime, stop: startTime }); - assert.strictEqual(fetchResp.result[0].length, 0); + assert.strictEqual(fetchResp.result.length, 0); }); });