import 'mocha'
import * as chai from 'chai'
+import { wait } from '@shared/core-utils'
+import { ActivityType, VideoPlaylistPrivacy } from '@shared/models'
import {
cleanupTests,
createMultipleServers,
doubleFollow,
PeerTubeServer,
setAccessTokensToServers,
- wait,
waitJobs
-} from '@shared/extra-utils'
-import { ActivityType, VideoPlaylistPrivacy } from '@shared/models'
+} from '@shared/server-commands'
const expect = chai.expect
await servers[0].comments.createThread({ videoId: uuid, text: 'comment' })
- await servers[0].videos.view({ id: uuid })
+ await servers[0].views.simulateView({ id: uuid })
// Wait the video views repeatable job
await wait(8000)
it('Should have the correct AP stats', async function () {
this.timeout(60000)
- await servers[0].config.updateCustomSubConfig({
- newConfig: {
- transcoding: {
- enabled: false
- }
- }
- })
+ await servers[0].config.disableTranscoding()
const first = await servers[1].stats.get()