Try to improve server tests compilation speed

This commit is contained in:
Chocobozzz 2019-04-11 14:28:17 +02:00
parent 74dc3bca2b
commit 76062d9f96
No known key found for this signature in database
GPG Key ID: 583A612D890159BE
3 changed files with 2 additions and 5 deletions

View File

@ -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'

View File

@ -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

View File

@ -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'