]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - server/tests/api/server/plugins.ts
Merge branch 'release/4.3.0' into develop
[github/Chocobozzz/PeerTube.git] / server / tests / api / server / plugins.ts
index 15c0937582f682c9c2fb19e84c4213ba1db6f55f..8ac7023ebc47f4fab5cbe7cab55d46384023ceb9 100644 (file)
@@ -1,7 +1,6 @@
 /* eslint-disable @typescript-eslint/no-unused-expressions,@typescript-eslint/require-await */
 
-import 'mocha'
-import * as chai from 'chai'
+import { expect } from 'chai'
 import { pathExists, remove } from 'fs-extra'
 import { join } from 'path'
 import { testHelloWorldRegisteredSettings } from '@server/tests/shared'
@@ -17,8 +16,6 @@ import {
   setAccessTokensToServers
 } from '@shared/server-commands'
 
-const expect = chai.expect
-
 describe('Test plugins', function () {
   let server: PeerTubeServer = null
   let command: PluginsCommand
@@ -353,7 +350,7 @@ describe('Test plugins', function () {
   })
 
   it('Should rebuild native modules on Node ABI change', async function () {
-    this.timeout(50000)
+    this.timeout(60000)
 
     const removeNativeModule = async () => {
       await remove(join(baseNativeModule, 'build'))
@@ -377,6 +374,8 @@ describe('Test plugins', function () {
     await server.kill()
     await server.run()
 
+    await wait(3000)
+
     expect(await pathExists(join(baseNativeModule, 'build'))).to.be.true
     expect(await pathExists(join(baseNativeModule, 'prebuilds'))).to.be.true