aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/tests
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2018-09-19 17:42:16 +0200
committerChocobozzz <me@florianbigard.com>2018-09-19 17:42:16 +0200
commitf41d6aacdf3b67e0c8d4e7a599b331d90aa607b7 (patch)
treebba985585e1146090f6fdb3ef3ed9b4869f4cda5 /server/tests
parent993cef4b6e000ee425087e5195dfe40cd0840243 (diff)
downloadPeerTube-f41d6aacdf3b67e0c8d4e7a599b331d90aa607b7.tar.gz
PeerTube-f41d6aacdf3b67e0c8d4e7a599b331d90aa607b7.tar.zst
PeerTube-f41d6aacdf3b67e0c8d4e7a599b331d90aa607b7.zip
Fix jobs tests
Diffstat (limited to 'server/tests')
-rw-r--r--server/tests/api/server/jobs.ts4
1 files changed, 3 insertions, 1 deletions
diff --git a/server/tests/api/server/jobs.ts b/server/tests/api/server/jobs.ts
index b2922c5da..f5a19c5ea 100644
--- a/server/tests/api/server/jobs.ts
+++ b/server/tests/api/server/jobs.ts
@@ -45,7 +45,9 @@ describe('Test jobs', function () {
45 expect(res.body.total).to.be.above(2) 45 expect(res.body.total).to.be.above(2)
46 expect(res.body.data).to.have.lengthOf(1) 46 expect(res.body.data).to.have.lengthOf(1)
47 47
48 const job = res.body.data[0] 48 let job = res.body.data[0]
49 // Skip repeat jobs
50 if (job.type === 'videos-views') job = res.body.data[1]
49 51
50 expect(job.state).to.equal('completed') 52 expect(job.state).to.equal('completed')
51 expect(job.type).to.equal('activitypub-follow') 53 expect(job.type).to.equal('activitypub-follow')