X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=server%2Ftests%2Fapi%2Fserver%2Fplugins.ts;h=8ac7023ebc47f4fab5cbe7cab55d46384023ceb9;hb=cea2fd90ddb3bf57c2fed77128938d12d4c2be6b;hp=15c0937582f682c9c2fb19e84c4213ba1db6f55f;hpb=9427890798c0e9b87cf13d39c50bc637f7989c7e;p=github%2FChocobozzz%2FPeerTube.git diff --git a/server/tests/api/server/plugins.ts b/server/tests/api/server/plugins.ts index 15c093758..8ac7023eb 100644 --- a/server/tests/api/server/plugins.ts +++ b/server/tests/api/server/plugins.ts @@ -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