ci: Remove unused WaitTracker mocking (no-changelog) (#9694)

This commit is contained in:
कारतोफ्फेलस्क्रिप्ट™ 2024-06-11 10:28:52 +02:00 committed by GitHub
parent 50bd5b9080
commit 6ba789aa6d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 0 additions and 19 deletions

View file

@ -17,7 +17,6 @@ import { Push } from '@/push';
import { SharedWorkflowRepository } from '@/databases/repositories/sharedWorkflow.repository';
import { SharedCredentialsRepository } from '@/databases/repositories/sharedCredentials.repository';
import { createTeamProject, findProject, getPersonalProject } from '../../shared/db/projects';
import { WaitTracker } from '@/WaitTracker';
import { getLdapSynchronizations, saveLdapSynchronization } from '@/Ldap/helpers';
import { createLdapConfig } from '../../shared/ldap';
import { LdapService } from '@/Ldap/ldap.service';
@ -40,9 +39,6 @@ beforeAll(async () => {
mockInstance(Push);
mockInstance(InternalHooks);
mockInstance(LoadNodesAndCredentials);
// This needs to be mocked, otherwise the time setInterval would prevent jest
// from exiting properly.
mockInstance(WaitTracker);
await testDb.init();
await oclifConfig.load();
});

View file

@ -5,19 +5,14 @@ import config from '@/config';
import { SourceControlPreferencesService } from '@/environments/sourceControl/sourceControlPreferences.service.ee';
import { SourceControlService } from '@/environments/sourceControl/sourceControl.service.ee';
import type { SourceControlledFile } from '@/environments/sourceControl/types/sourceControlledFile';
import { WaitTracker } from '@/WaitTracker';
import * as utils from '../shared/utils/';
import { createUser } from '../shared/db/users';
import { mockInstance } from '../../shared/mocking';
import type { SuperAgentTest } from '../shared/types';
let authOwnerAgent: SuperAgentTest;
let owner: User;
// This is necessary for the tests to shutdown cleanly.
mockInstance(WaitTracker);
const testServer = utils.setupTestServer({
endpointGroups: ['sourceControl', 'license', 'auth'],
enabledFeatures: ['feat:sourceControl', 'feat:sharing'],

View file

@ -5,8 +5,6 @@ import { createMember, createOwner } from './shared/db/users';
import { createWorkflow, shareWorkflowWithUsers } from './shared/db/workflows';
import * as testDb from './shared/testDb';
import { setupTestServer } from './shared/utils';
import { mockInstance } from '../shared/mocking';
import { WaitTracker } from '@/WaitTracker';
import { createTeamProject, linkUserToProject } from './shared/db/projects';
const testServer = setupTestServer({ endpointGroups: ['executions'] });
@ -14,9 +12,6 @@ const testServer = setupTestServer({ endpointGroups: ['executions'] });
let owner: User;
let member: User;
// This is necessary for the tests to shutdown cleanly.
mockInstance(WaitTracker);
const saveExecution = async ({ belongingTo }: { belongingTo: User }) => {
const workflow = await createWorkflow({}, belongingTo);
return await createSuccessfulExecution(workflow);

View file

@ -5,8 +5,6 @@ import * as testDb from '../shared/testDb';
import { createUser } from '../shared/db/users';
import { createWorkflowWithTrigger } from '../shared/db/workflows';
import { createTeamProject } from '../shared/db/projects';
import { mockInstance } from '../../shared/mocking';
import { WaitTracker } from '@/WaitTracker';
let member: User;
let anotherMember: User;
@ -16,9 +14,6 @@ const testServer = utils.setupTestServer({
enabledFeatures: ['feat:sharing', 'feat:advancedPermissions'],
});
// This is necessary for the tests to shutdown cleanly.
mockInstance(WaitTracker);
beforeAll(async () => {
member = await createUser({ role: 'global:member' });
anotherMember = await createUser({ role: 'global:member' });