mirror of https://github.com/Chocobozzz/PeerTube
Try to improve server tests compilation speed
parent
74dc3bca2b
commit
76062d9f96
|
@ -22,8 +22,7 @@ import { FollowState } from '../../../shared/models/actors'
|
||||||
import { ActorFollow } from '../../../shared/models/actors/follow.model'
|
import { ActorFollow } from '../../../shared/models/actors/follow.model'
|
||||||
import { logger } from '../../helpers/logger'
|
import { logger } from '../../helpers/logger'
|
||||||
import { getServerActor } from '../../helpers/utils'
|
import { getServerActor } from '../../helpers/utils'
|
||||||
import { ACTOR_FOLLOW_SCORE } from '../../initializers/constants'
|
import { ACTOR_FOLLOW_SCORE, FOLLOW_STATES } from '../../initializers/constants'
|
||||||
import { FOLLOW_STATES } from '../../initializers/constants'
|
|
||||||
import { ServerModel } from '../server/server'
|
import { ServerModel } from '../server/server'
|
||||||
import { getSort } from '../utils'
|
import { getSort } from '../utils'
|
||||||
import { ActorModel, unusedActorAttributesForAPI } from './actor'
|
import { ActorModel, unusedActorAttributesForAPI } from './actor'
|
||||||
|
|
|
@ -7,8 +7,6 @@ import {
|
||||||
flushAndRunMultipleServers,
|
flushAndRunMultipleServers,
|
||||||
flushTests,
|
flushTests,
|
||||||
killallServers,
|
killallServers,
|
||||||
makeFollowRequest,
|
|
||||||
makePOSTAPRequest,
|
|
||||||
ServerInfo,
|
ServerInfo,
|
||||||
setActorField
|
setActorField
|
||||||
} from '../../../../shared/utils'
|
} 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 { buildDigest, buildGlobalHeaders } from '../../../lib/job-queue/handlers/utils/activitypub-http-utils'
|
||||||
import * as chai from 'chai'
|
import * as chai from 'chai'
|
||||||
import { activityPubContextify, buildSignedActivity } from '../../../helpers/activitypub'
|
import { activityPubContextify, buildSignedActivity } from '../../../helpers/activitypub'
|
||||||
|
import { makeFollowRequest, makePOSTAPRequest } from '../../../../shared/utils/requests/activitypub'
|
||||||
|
|
||||||
const expect = chai.expect
|
const expect = chai.expect
|
||||||
|
|
||||||
|
|
|
@ -8,7 +8,6 @@ export * from './miscs/miscs'
|
||||||
export * from './miscs/stubs'
|
export * from './miscs/stubs'
|
||||||
export * from './miscs/sql'
|
export * from './miscs/sql'
|
||||||
export * from './server/follows'
|
export * from './server/follows'
|
||||||
export * from './requests/activitypub'
|
|
||||||
export * from './requests/requests'
|
export * from './requests/requests'
|
||||||
export * from './requests/check-api-params'
|
export * from './requests/check-api-params'
|
||||||
export * from './server/servers'
|
export * from './server/servers'
|
||||||
|
|
Loading…
Reference in New Issue