diff options
author | Chocobozzz <me@florianbigard.com> | 2021-07-22 12:07:26 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2021-07-22 12:08:02 +0200 |
commit | 2e980ed30dc37061b467ebbb68094f830bffdb5d (patch) | |
tree | 6e79e4fce84e2faeaf44dd2b8fd95a8d26735461 /server | |
parent | 7a397c7f1548750bc6c1609bcdd34d1bded9fbf7 (diff) | |
download | PeerTube-2e980ed30dc37061b467ebbb68094f830bffdb5d.tar.gz PeerTube-2e980ed30dc37061b467ebbb68094f830bffdb5d.tar.zst PeerTube-2e980ed30dc37061b467ebbb68094f830bffdb5d.zip |
Simplify createServer args
Diffstat (limited to 'server')
-rw-r--r-- | server/tests/api/server/no-client.ts | 2 | ||||
-rw-r--r-- | server/tools/test-live.ts | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/server/tests/api/server/no-client.ts b/server/tests/api/server/no-client.ts index efa890ad4..719813ae9 100644 --- a/server/tests/api/server/no-client.ts +++ b/server/tests/api/server/no-client.ts | |||
@@ -9,7 +9,7 @@ describe('Start and stop server without web client routes', function () { | |||
9 | before(async function () { | 9 | before(async function () { |
10 | this.timeout(30000) | 10 | this.timeout(30000) |
11 | 11 | ||
12 | server = await createSingleServer(1, {}, [ '--no-client' ]) | 12 | server = await createSingleServer(1, {}, { peertubeArgs: [ '--no-client' ] }) |
13 | }) | 13 | }) |
14 | 14 | ||
15 | it('Should fail getting the client', function () { | 15 | it('Should fail getting the client', function () { |
diff --git a/server/tools/test-live.ts b/server/tools/test-live.ts index 0cb0c3668..50dc04438 100644 --- a/server/tools/test-live.ts +++ b/server/tools/test-live.ts | |||
@@ -36,7 +36,7 @@ async function run () { | |||
36 | 36 | ||
37 | console.log('Starting server.') | 37 | console.log('Starting server.') |
38 | 38 | ||
39 | const server = await createSingleServer(1, {}, [], { hideLogs: false, execArgv: [ '--inspect' ] }) | 39 | const server = await createSingleServer(1, {}, { hideLogs: false, nodeArgs: [ '--inspect' ] }) |
40 | 40 | ||
41 | const cleanup = async () => { | 41 | const cleanup = async () => { |
42 | console.log('Killing server') | 42 | console.log('Killing server') |