mirror of
https://github.com/Unleash/unleash.git
synced 2025-04-06 01:15:28 +02:00
fix: flaky test (#5172)
This commit is contained in:
parent
496f6bb90c
commit
c9f9fc7521
@ -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 () => {
|
test('should return a 200 if required fields are there', async () => {
|
||||||
stores.featureToggleStore.create('default', {
|
stores.featureToggleStore.create('default', {
|
||||||
name: 'toggleLastSeen',
|
name: 'theOtherToggleLastSeen',
|
||||||
});
|
});
|
||||||
await request
|
await request
|
||||||
.post('/api/client/metrics')
|
.post('/api/client/metrics')
|
||||||
@ -248,7 +248,7 @@ test('should return a 200 if required fields are there', async () => {
|
|||||||
start: Date.now(),
|
start: Date.now(),
|
||||||
stop: Date.now(),
|
stop: Date.now(),
|
||||||
toggles: {
|
toggles: {
|
||||||
toggleLastSeen: {
|
theOtherToggleLastSeen: {
|
||||||
yes: 200,
|
yes: 200,
|
||||||
no: 0,
|
no: 0,
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user