From 76062d9f96e06a23a2efc8a727ea9c5394d21466 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Thu, 11 Apr 2019 14:28:17 +0200 Subject: [PATCH] Try to improve server tests compilation speed --- server/models/activitypub/actor-follow.ts | 3 +-- server/tests/api/activitypub/security.ts | 3 +-- shared/utils/index.ts | 1 - 3 files changed, 2 insertions(+), 5 deletions(-) diff --git a/server/models/activitypub/actor-follow.ts b/server/models/activitypub/actor-follow.ts index 1b272e1c8..f9b4f57f3 100644 --- a/server/models/activitypub/actor-follow.ts +++ b/server/models/activitypub/actor-follow.ts @@ -22,8 +22,7 @@ import { FollowState } from '../../../shared/models/actors' import { ActorFollow } from '../../../shared/models/actors/follow.model' import { logger } from '../../helpers/logger' import { getServerActor } from '../../helpers/utils' -import { ACTOR_FOLLOW_SCORE } from '../../initializers/constants' -import { FOLLOW_STATES } from '../../initializers/constants' +import { ACTOR_FOLLOW_SCORE, FOLLOW_STATES } from '../../initializers/constants' import { ServerModel } from '../server/server' import { getSort } from '../utils' import { ActorModel, unusedActorAttributesForAPI } from './actor' diff --git a/server/tests/api/activitypub/security.ts b/server/tests/api/activitypub/security.ts index a92326846..2c55876ba 100644 --- a/server/tests/api/activitypub/security.ts +++ b/server/tests/api/activitypub/security.ts @@ -7,8 +7,6 @@ import { flushAndRunMultipleServers, flushTests, killallServers, - makeFollowRequest, - makePOSTAPRequest, ServerInfo, setActorField } from '../../../../shared/utils' @@ -16,6 +14,7 @@ import { HTTP_SIGNATURE } from '../../../initializers/constants' import { buildDigest, buildGlobalHeaders } from '../../../lib/job-queue/handlers/utils/activitypub-http-utils' import * as chai from 'chai' import { activityPubContextify, buildSignedActivity } from '../../../helpers/activitypub' +import { makeFollowRequest, makePOSTAPRequest } from '../../../../shared/utils/requests/activitypub' const expect = chai.expect diff --git a/shared/utils/index.ts b/shared/utils/index.ts index 469546872..9d0bbaa38 100644 --- a/shared/utils/index.ts +++ b/shared/utils/index.ts @@ -8,7 +8,6 @@ export * from './miscs/miscs' export * from './miscs/stubs' export * from './miscs/sql' export * from './server/follows' -export * from './requests/activitypub' export * from './requests/requests' export * from './requests/check-api-params' export * from './server/servers' -- 2.25.1