mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 01:56:46 +00:00
refactor(core): Port cache config (no-changelog) (#10286)
This commit is contained in:
@@ -1,8 +1,13 @@
|
||||
import { ActivationErrorsService } from '@/ActivationErrors.service';
|
||||
import { CacheService } from '@/services/cache/cache.service';
|
||||
import { GlobalConfig } from '@n8n/config';
|
||||
import { mockInstance } from '@test/mocking';
|
||||
|
||||
describe('ActivationErrorsService', () => {
|
||||
const cacheService = new CacheService();
|
||||
const globalConfig = mockInstance(GlobalConfig, {
|
||||
cache: { backend: 'memory', memory: { maxSize: 3 * 1024 * 1024, ttl: 3600 * 1000 } },
|
||||
});
|
||||
const cacheService = new CacheService(globalConfig);
|
||||
const activationErrorsService = new ActivationErrorsService(cacheService);
|
||||
|
||||
const firstWorkflowId = 'GSG0etbfTA2CNPDX';
|
||||
|
||||
Reference in New Issue
Block a user