aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/tests
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2022-08-05 13:40:56 +0200
committerChocobozzz <me@florianbigard.com>2022-08-09 09:18:07 +0200
commit64fd6158fd276f258bcfc4bb0c8fc2f64a220a11 (patch)
tree16deccc689788a3832ea3097fae8e4ccb30cabe3 /server/tests
parent84cae54e7a2595bea0c3ea106a4d111fd11a4ec6 (diff)
downloadPeerTube-64fd6158fd276f258bcfc4bb0c8fc2f64a220a11.tar.gz
PeerTube-64fd6158fd276f258bcfc4bb0c8fc2f64a220a11.tar.zst
PeerTube-64fd6158fd276f258bcfc4bb0c8fc2f64a220a11.zip
Fix resolution to transcode hook name
Diffstat (limited to 'server/tests')
-rw-r--r--server/tests/fixtures/peertube-plugin-test/main.js2
-rw-r--r--server/tests/plugins/filter-hooks.ts2
2 files changed, 2 insertions, 2 deletions
diff --git a/server/tests/fixtures/peertube-plugin-test/main.js b/server/tests/fixtures/peertube-plugin-test/main.js
index b3febfa12..813482a27 100644
--- a/server/tests/fixtures/peertube-plugin-test/main.js
+++ b/server/tests/fixtures/peertube-plugin-test/main.js
@@ -301,7 +301,7 @@ async function register ({ registerHook, registerSetting, settingsManager, stora
301 }) 301 })
302 302
303 registerHook({ 303 registerHook({
304 target: 'filter:transcoding.auto.lower-resolutions-to-transcode.result', 304 target: 'filter:transcoding.auto.resolutions-to-transcode.result',
305 handler: (object, context) => { 305 handler: (object, context) => {
306 if (context.video.name.includes('transcode-filter')) { 306 if (context.video.name.includes('transcode-filter')) {
307 object = [ 100 ] 307 object = [ 100 ]
diff --git a/server/tests/plugins/filter-hooks.ts b/server/tests/plugins/filter-hooks.ts
index 015459ead..7e98d9be6 100644
--- a/server/tests/plugins/filter-hooks.ts
+++ b/server/tests/plugins/filter-hooks.ts
@@ -680,7 +680,7 @@ describe('Test plugin filter hooks', function () {
680 680
681 describe('Transcoding filters', async function () { 681 describe('Transcoding filters', async function () {
682 682
683 it('Should run filter:transcoding.auto.lower-resolutions-to-transcode.result', async function () { 683 it('Should run filter:transcoding.auto.resolutions-to-transcode.result', async function () {
684 const { uuid } = await servers[0].videos.quickUpload({ name: 'transcode-filter' }) 684 const { uuid } = await servers[0].videos.quickUpload({ name: 'transcode-filter' })
685 685
686 await waitJobs(servers) 686 await waitJobs(servers)