1
0
mirror of https://github.com/Unleash/unleash.git synced 2024-12-22 19:07:54 +01:00

fix: flaky test (#5172)

This commit is contained in:
Simon Hornby 2023-10-27 12:52:49 +02:00 committed by GitHub
parent 496f6bb90c
commit c9f9fc7521
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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,
},