aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2023-08-18 11:50:36 +0200
committerChocobozzz <me@florianbigard.com>2023-08-18 11:50:36 +0200
commit18570bee9991a66528d5808a76496878041a9d7b (patch)
tree44d757d8a830116bdb7534ecee873efae3aa7088
parent18987248f6c0cfb6b7b2b4017c797293c870818d (diff)
downloadPeerTube-18570bee9991a66528d5808a76496878041a9d7b.tar.gz
PeerTube-18570bee9991a66528d5808a76496878041a9d7b.tar.zst
PeerTube-18570bee9991a66528d5808a76496878041a9d7b.zip
Add unset originallyPublishedAt test
-rw-r--r--packages/tests/src/api/videos/multiple-servers.ts15
1 files changed, 15 insertions, 0 deletions
diff --git a/packages/tests/src/api/videos/multiple-servers.ts b/packages/tests/src/api/videos/multiple-servers.ts
index 03afd7cbb..d6e09236c 100644
--- a/packages/tests/src/api/videos/multiple-servers.ts
+++ b/packages/tests/src/api/videos/multiple-servers.ts
@@ -678,6 +678,21 @@ describe('Test multiple servers', function () {
678 } 678 }
679 }) 679 })
680 680
681 it('Should be able to remove originallyPublishedAt attribute', async function () {
682 this.timeout(60000)
683
684 const attributes = { originallyPublishedAt: null }
685 await servers[2].videos.update({ id: toRemove[0].id, attributes })
686
687 await waitJobs(servers)
688
689 for (const server of servers) {
690 const video = await server.videos.get({ id: toRemove[0].uuid })
691
692 expect(video.originallyPublishedAt).to.not.exist
693 }
694 })
695
681 it('Should only update thumbnail and update updatedAt attribute', async function () { 696 it('Should only update thumbnail and update updatedAt attribute', async function () {
682 this.timeout(30000) 697 this.timeout(30000)
683 698