aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/tests/cli/plugins.ts
diff options
context:
space:
mode:
Diffstat (limited to 'server/tests/cli/plugins.ts')
-rw-r--r--server/tests/cli/plugins.ts8
1 files changed, 4 insertions, 4 deletions
diff --git a/server/tests/cli/plugins.ts b/server/tests/cli/plugins.ts
index d7bf8a690..a5257d671 100644
--- a/server/tests/cli/plugins.ts
+++ b/server/tests/cli/plugins.ts
@@ -6,13 +6,13 @@ import {
6 execCLI, 6 execCLI,
7 flushAndRunServer, 7 flushAndRunServer,
8 getConfig, 8 getConfig,
9 getEnvCli, killallServers, 9 getEnvCli,
10 getPluginTestPath,
11 killallServers,
10 reRunServer, 12 reRunServer,
11 root,
12 ServerInfo, 13 ServerInfo,
13 setAccessTokensToServers 14 setAccessTokensToServers
14} from '../../../shared/extra-utils' 15} from '../../../shared/extra-utils'
15import { join } from 'path'
16import { ServerConfig } from '../../../shared/models/server' 16import { ServerConfig } from '../../../shared/models/server'
17import { expect } from 'chai' 17import { expect } from 'chai'
18 18
@@ -29,7 +29,7 @@ describe('Test plugin scripts', function () {
29 it('Should install a plugin from stateless CLI', async function () { 29 it('Should install a plugin from stateless CLI', async function () {
30 this.timeout(60000) 30 this.timeout(60000)
31 31
32 const packagePath = join(root(), 'server', 'tests', 'fixtures', 'peertube-plugin-test') 32 const packagePath = getPluginTestPath()
33 33
34 const env = getEnvCli(server) 34 const env = getEnvCli(server)
35 await execCLI(`${env} npm run plugin:install -- --plugin-path ${packagePath}`) 35 await execCLI(`${env} npm run plugin:install -- --plugin-path ${packagePath}`)