diff options
Diffstat (limited to 'server/tests/api/videos/multiple-servers.ts')
-rw-r--r-- | server/tests/api/videos/multiple-servers.ts | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/server/tests/api/videos/multiple-servers.ts b/server/tests/api/videos/multiple-servers.ts index 9c255c1c5..470bee45b 100644 --- a/server/tests/api/videos/multiple-servers.ts +++ b/server/tests/api/videos/multiple-servers.ts | |||
@@ -591,7 +591,9 @@ describe('Test multiple servers', function () { | |||
591 | }) | 591 | }) |
592 | 592 | ||
593 | describe('Should manipulate these videos', function () { | 593 | describe('Should manipulate these videos', function () { |
594 | it('Should update the video 3 by asking server 3', async function () { | 594 | let updatedAtMin: Date |
595 | |||
596 | it('Should update video 3', async function () { | ||
595 | this.timeout(10000) | 597 | this.timeout(10000) |
596 | 598 | ||
597 | const attributes = { | 599 | const attributes = { |
@@ -608,6 +610,7 @@ describe('Test multiple servers', function () { | |||
608 | previewfile: 'preview.jpg' | 610 | previewfile: 'preview.jpg' |
609 | } | 611 | } |
610 | 612 | ||
613 | updatedAtMin = new Date() | ||
611 | await servers[2].videos.update({ id: toRemove[0].id, attributes }) | 614 | await servers[2].videos.update({ id: toRemove[0].id, attributes }) |
612 | 615 | ||
613 | await waitJobs(servers) | 616 | await waitJobs(servers) |
@@ -622,6 +625,8 @@ describe('Test multiple servers', function () { | |||
622 | const videoUpdated = data.find(video => video.name === 'my super video updated') | 625 | const videoUpdated = data.find(video => video.name === 'my super video updated') |
623 | expect(!!videoUpdated).to.be.true | 626 | expect(!!videoUpdated).to.be.true |
624 | 627 | ||
628 | expect(new Date(videoUpdated.updatedAt)).to.be.greaterThan(updatedAtMin) | ||
629 | |||
625 | const isLocal = server.url === 'http://localhost:' + servers[2].port | 630 | const isLocal = server.url === 'http://localhost:' + servers[2].port |
626 | const checkAttributes = { | 631 | const checkAttributes = { |
627 | name: 'my super video updated', | 632 | name: 'my super video updated', |
@@ -1024,15 +1029,15 @@ describe('Test multiple servers', function () { | |||
1024 | files: [ | 1029 | files: [ |
1025 | { | 1030 | { |
1026 | resolution: 720, | 1031 | resolution: 720, |
1027 | size: 59000 | 1032 | size: 61000 |
1028 | }, | 1033 | }, |
1029 | { | 1034 | { |
1030 | resolution: 480, | 1035 | resolution: 480, |
1031 | size: 34000 | 1036 | size: 40000 |
1032 | }, | 1037 | }, |
1033 | { | 1038 | { |
1034 | resolution: 360, | 1039 | resolution: 360, |
1035 | size: 31000 | 1040 | size: 32000 |
1036 | }, | 1041 | }, |
1037 | { | 1042 | { |
1038 | resolution: 240, | 1043 | resolution: 240, |