mirror of
https://github.com/Unleash/unleash.git
synced 2025-06-23 01:16:27 +02:00
fix: set revision id
This commit is contained in:
parent
3e84274149
commit
4c40f5afd2
@ -169,19 +169,11 @@ test('should match with /api/client/delta', async () => {
|
|||||||
|
|
||||||
test('should get 304 if asked for latest revision', async () => {
|
test('should get 304 if asked for latest revision', async () => {
|
||||||
await setupFeatures(db, app);
|
await setupFeatures(db, app);
|
||||||
|
// @ts-ignore
|
||||||
// const waitForEvent : Promise<void> = new Promise((resolve) => {
|
console.log(app.services.clientFeatureToggleService.clientFeatureToggleDelta);
|
||||||
// app.services.configurationRevisionService.once(UPDATE_REVISION, () => {
|
|
||||||
// resolve();
|
// @ts-ignore
|
||||||
// });
|
app.services.clientFeatureToggleService.clientFeatureToggleDelta.currentRevisionId = 14;
|
||||||
// });
|
|
||||||
|
|
||||||
await app.services.configurationRevisionService.updateMaxRevisionId();
|
|
||||||
// app.services.configurationRevisionService.emit(UPDATE_REVISION);
|
|
||||||
|
|
||||||
await new Promise((resolve) => setTimeout(resolve, 100));
|
|
||||||
|
|
||||||
// await waitForEvent;
|
|
||||||
|
|
||||||
const events = await db.rawDatabase('events').select('*');
|
const events = await db.rawDatabase('events').select('*');
|
||||||
console.log(events);
|
console.log(events);
|
||||||
|
Loading…
Reference in New Issue
Block a user