diff options
author | Chocobozzz <me@florianbigard.com> | 2021-07-08 10:25:50 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2021-07-20 15:27:17 +0200 |
commit | 04aed76711909507e74905bde3a7fa024d3585c9 (patch) | |
tree | da93912bb9331feda40f597da3fea7dc24970d66 /server/tests/api/search | |
parent | d897210c2db1ca2acc1e7b28a13127647ab2222c (diff) | |
download | PeerTube-04aed76711909507e74905bde3a7fa024d3585c9.tar.gz PeerTube-04aed76711909507e74905bde3a7fa024d3585c9.tar.zst PeerTube-04aed76711909507e74905bde3a7fa024d3585c9.zip |
Shorter live methods
Diffstat (limited to 'server/tests/api/search')
-rw-r--r-- | server/tests/api/search/search-videos.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/server/tests/api/search/search-videos.ts b/server/tests/api/search/search-videos.ts index af74b26a7..a0375fbf0 100644 --- a/server/tests/api/search/search-videos.ts +++ b/server/tests/api/search/search-videos.ts | |||
@@ -502,10 +502,10 @@ describe('Test videos search', function () { | |||
502 | const liveCommand = server.liveCommand | 502 | const liveCommand = server.liveCommand |
503 | 503 | ||
504 | const liveAttributes = { name: 'live', privacy: VideoPrivacy.PUBLIC, channelId: server.videoChannel.id } | 504 | const liveAttributes = { name: 'live', privacy: VideoPrivacy.PUBLIC, channelId: server.videoChannel.id } |
505 | const live = await liveCommand.createLive({ fields: liveAttributes }) | 505 | const live = await liveCommand.create({ fields: liveAttributes }) |
506 | 506 | ||
507 | const ffmpegCommand = await liveCommand.sendRTMPStreamInVideo({ videoId: live.id }) | 507 | const ffmpegCommand = await liveCommand.sendRTMPStreamInVideo({ videoId: live.id }) |
508 | await liveCommand.waitUntilLivePublished({ videoId: live.id }) | 508 | await liveCommand.waitUntilPublished({ videoId: live.id }) |
509 | 509 | ||
510 | const body = await command.advancedVideoSearch({ search: { isLive: true } }) | 510 | const body = await command.advancedVideoSearch({ search: { isLive: true } }) |
511 | 511 | ||