diff --git a/src/lib/features/frontend-api/frontend-api.e2e.test.ts b/src/lib/features/frontend-api/frontend-api.e2e.test.ts index a93f10a73549..ccb22894c93a 100644 --- a/src/lib/features/frontend-api/frontend-api.e2e.test.ts +++ b/src/lib/features/frontend-api/frontend-api.e2e.test.ts @@ -591,7 +591,6 @@ test('should be able to set environment as a context variable', async () => { }); await frontendApiService.refreshData(); - await ms(100); await app.request .get('/api/frontend?environment=staging') .set('Authorization', frontendToken.secret) @@ -611,11 +610,6 @@ test('should be able to set environment as a context variable', async () => { expect(res.body.toggles).toHaveLength(0); }); }); - -function ms(timeMs: number) { - return new Promise((resolve) => setTimeout(resolve, timeMs)); -} - test('should filter features by project', async () => { const projectA = 'projectA'; const projectB = 'projectB'; diff --git a/src/lib/features/frontend-api/global-frontend-api-cache.ts b/src/lib/features/frontend-api/global-frontend-api-cache.ts index 236dc24c93d7..e6784b2b619b 100644 --- a/src/lib/features/frontend-api/global-frontend-api-cache.ts +++ b/src/lib/features/frontend-api/global-frontend-api-cache.ts @@ -77,7 +77,6 @@ export class GlobalFrontendApiCache extends EventEmitter { const features = this.getTogglesByEnvironment( this.environmentNameForToken(token), ); - console.log('get toggle'); return features[name]; } @@ -115,7 +114,6 @@ export class GlobalFrontendApiCache extends EventEmitter { try { this.featuresByEnvironment = await this.getAllFeatures(); this.segments = await this.getAllSegments(); - console.log('features updated'); if (this.status === 'starting') { this.status = 'ready'; this.emit('ready');