-/* tslint:disable:no-unused-expression */
+/* eslint-disable @typescript-eslint/no-unused-expressions,@typescript-eslint/require-await */
import * as chai from 'chai'
import 'mocha'
import {
+ cleanupTests,
flushAndRunMultipleServers,
getVideo,
getVideoDescription,
getVideosList,
- killallServers,
ServerInfo,
setAccessTokensToServers,
updateVideo,
uploadVideo
-} from '../../../../shared/utils/index'
-import { doubleFollow } from '../../../../shared/utils/server/follows'
-import { waitJobs } from '../../../../shared/utils/server/jobs'
+} from '../../../../shared/extra-utils/index'
+import { doubleFollow } from '../../../../shared/extra-utils/server/follows'
+import { waitJobs } from '../../../../shared/extra-utils/server/jobs'
const expect = chai.expect
let servers: ServerInfo[] = []
let videoUUID = ''
let videoId: number
- let longDescription = 'my super description for server 1'.repeat(50)
+ const longDescription = 'my super description for server 1'.repeat(50)
before(async function () {
this.timeout(40000)
// 30 characters * 6 -> 240 characters
const truncatedDescription = 'my super description for server 1'.repeat(7) +
- 'my super descrip...'
+ 'my super descrip...'
expect(video.description).to.equal(truncatedDescription)
}
})
after(async function () {
- killallServers(servers)
+ await cleanupTests(servers)
})
})