diff options
author | Chocobozzz <me@florianbigard.com> | 2023-05-19 14:35:03 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2023-05-19 14:35:03 +0200 |
commit | cfa61763812954f738f2863948f6707f9fd3aad1 (patch) | |
tree | defaeb03e3a092ef3d3eb17150fa58831090ef66 /server/tests/shared/peertube-runner-process.ts | |
parent | 476ce1d7f42701cb2ce456b52c27a23ccfcef6d4 (diff) | |
download | PeerTube-cfa61763812954f738f2863948f6707f9fd3aad1.tar.gz PeerTube-cfa61763812954f738f2863948f6707f9fd3aad1.tar.zst PeerTube-cfa61763812954f738f2863948f6707f9fd3aad1.zip |
Fix runner cleanup test
Diffstat (limited to 'server/tests/shared/peertube-runner-process.ts')
-rw-r--r-- | server/tests/shared/peertube-runner-process.ts | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/server/tests/shared/peertube-runner-process.ts b/server/tests/shared/peertube-runner-process.ts index 6ad2cd116..b3c8dfe0e 100644 --- a/server/tests/shared/peertube-runner-process.ts +++ b/server/tests/shared/peertube-runner-process.ts | |||
@@ -80,11 +80,15 @@ export class PeerTubeRunnerProcess { | |||
80 | this.app = null | 80 | this.app = null |
81 | } | 81 | } |
82 | 82 | ||
83 | getId () { | ||
84 | return 'test-' + this.server.internalServerNumber | ||
85 | } | ||
86 | |||
83 | private getRunnerPath () { | 87 | private getRunnerPath () { |
84 | return join(root(), 'packages', 'peertube-runner', 'dist', 'peertube-runner.js') | 88 | return join(root(), 'packages', 'peertube-runner', 'dist', 'peertube-runner.js') |
85 | } | 89 | } |
86 | 90 | ||
87 | private buildIdArg () { | 91 | private buildIdArg () { |
88 | return [ '--id', 'test-' + this.server.internalServerNumber ] | 92 | return [ '--id', this.getId() ] |
89 | } | 93 | } |
90 | } | 94 | } |