mirror of
https://github.com/Unleash/unleash.git
synced 2024-12-22 19:07:54 +01:00
makes the 'Should update last seen for known toggles test' no longer … (#3293)
The patched test is currently depending on runtime to take more than a millisecond to update the tested property. That's not always true and more so on a fast machine, which makes this test flakey. This forces the old timestamp to be 100 ms in the past so that the checked property must be at least 100 ms different if the update occurred
This commit is contained in:
parent
763cd56af3
commit
035daf675f
@ -22,7 +22,7 @@ afterAll(async () => {
|
|||||||
|
|
||||||
test('Should update last seen for known toggles', async () => {
|
test('Should update last seen for known toggles', async () => {
|
||||||
const service = new LastSeenService(stores, config);
|
const service = new LastSeenService(stores, config);
|
||||||
const time = Date.now();
|
const time = Date.now() - 100;
|
||||||
await stores.featureToggleStore.create('default', { name: 'ta1' });
|
await stores.featureToggleStore.create('default', { name: 'ta1' });
|
||||||
|
|
||||||
const metrics: IClientMetricsEnv[] = [
|
const metrics: IClientMetricsEnv[] = [
|
||||||
|
Loading…
Reference in New Issue
Block a user