From c9f9fc7521e44ec5fa14caac0dcda12d10d71d3d Mon Sep 17 00:00:00 2001 From: Simon Hornby Date: Fri, 27 Oct 2023 12:52:49 +0200 Subject: [PATCH] fix: flaky test (#5172) --- src/lib/routes/client-api/metrics.test.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib/routes/client-api/metrics.test.ts b/src/lib/routes/client-api/metrics.test.ts index fb48c324f1..15cd7e707c 100644 --- a/src/lib/routes/client-api/metrics.test.ts +++ b/src/lib/routes/client-api/metrics.test.ts @@ -236,7 +236,7 @@ test('should return a 400 when required fields are missing', async () => { test('should return a 200 if required fields are there', async () => { stores.featureToggleStore.create('default', { - name: 'toggleLastSeen', + name: 'theOtherToggleLastSeen', }); await request .post('/api/client/metrics') @@ -248,7 +248,7 @@ test('should return a 200 if required fields are there', async () => { start: Date.now(), stop: Date.now(), toggles: { - toggleLastSeen: { + theOtherToggleLastSeen: { yes: 200, no: 0, },