Fix peertube script
This commit is contained in:
parent
00f9e41ebf
commit
5c142a4bab
3 changed files with 3 additions and 3 deletions
|
@ -1,6 +1,6 @@
|
|||
// Order of the tests we want to execute
|
||||
import './create-transcoding-job'
|
||||
import './create-import-video-file-job'
|
||||
import './create-transcoding-job'
|
||||
import './peertube'
|
||||
import './reset-password'
|
||||
import './update-host'
|
||||
|
|
|
@ -40,7 +40,7 @@ describe('Test CLI wrapper', function () {
|
|||
this.timeout(60000)
|
||||
|
||||
const env = getEnvCli(server)
|
||||
const stdout = await execCLI(`${env} ` + cmd + ` auth add --url ${server.url} -U user_1 -p "super password"`)
|
||||
await execCLI(`${env} ` + cmd + ` auth add --url ${server.url} -U user_1 -p "super password"`)
|
||||
})
|
||||
|
||||
after(async function () {
|
||||
|
|
|
@ -62,7 +62,7 @@ if (!process.argv.slice(2).length) {
|
|||
|
||||
getSettings()
|
||||
.then(settings => {
|
||||
const state = (settings.default === -1) ?
|
||||
const state = (settings.default === undefined || settings.default === -1) ?
|
||||
'no instance selected, commands will require explicit arguments' :
|
||||
('instance ' + settings.remotes[settings.default] + ' selected')
|
||||
program
|
||||
|
|
Loading…
Reference in a new issue