aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/tests/shared/peertube-runner-process.ts
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2023-05-26 09:03:50 +0200
committerChocobozzz <me@florianbigard.com>2023-05-26 09:04:22 +0200
commitf474a519dc08df47c96ead9e0216912582def4f7 (patch)
treed92bf1219434ce7415f709ca5e707d1e65e9d6a6 /server/tests/shared/peertube-runner-process.ts
parente35967ee084a1cba8ed7bc893209bd69200ca3ca (diff)
downloadPeerTube-f474a519dc08df47c96ead9e0216912582def4f7.tar.gz
PeerTube-f474a519dc08df47c96ead9e0216912582def4f7.tar.zst
PeerTube-f474a519dc08df47c96ead9e0216912582def4f7.zip
Specify runner name when unregistering the runner
Diffstat (limited to 'server/tests/shared/peertube-runner-process.ts')
-rw-r--r--server/tests/shared/peertube-runner-process.ts8
1 files changed, 6 insertions, 2 deletions
diff --git a/server/tests/shared/peertube-runner-process.ts b/server/tests/shared/peertube-runner-process.ts
index b3c8dfe0e..9304ebcc8 100644
--- a/server/tests/shared/peertube-runner-process.ts
+++ b/server/tests/shared/peertube-runner-process.ts
@@ -60,8 +60,12 @@ export class PeerTubeRunnerProcess {
60 return execa.node(this.getRunnerPath(), args) 60 return execa.node(this.getRunnerPath(), args)
61 } 61 }
62 62
63 unregisterPeerTubeInstance () { 63 unregisterPeerTubeInstance (options: {
64 const args = [ 'unregister', '--url', this.server.url, ...this.buildIdArg() ] 64 runnerName: string
65 }) {
66 const { runnerName } = options
67
68 const args = [ 'unregister', '--url', this.server.url, '--runner-name', runnerName, ...this.buildIdArg() ]
65 return execa.node(this.getRunnerPath(), args) 69 return execa.node(this.getRunnerPath(), args)
66 } 70 }
67 71