Fix misc tests
authorChocobozzz <me@florianbigard.com>
Tue, 22 Oct 2019 07:25:35 +0000 (09:25 +0200)
committerChocobozzz <me@florianbigard.com>
Tue, 22 Oct 2019 07:25:35 +0000 (09:25 +0200)
server/tests/api/server/follow-constraints.ts
server/tests/misc-endpoints.ts

index ac3ff37f0f474eec1fc5d08306d1350233d4e00b..46663bf7cb6e844bbf3ea3070e4a7da6de78a690 100644 (file)
@@ -27,7 +27,7 @@ describe('Test follow constraints', function () {
   let userAccessToken: string
 
   before(async function () {
-    this.timeout(30000)
+    this.timeout(60000)
 
     servers = await flushAndRunMultipleServers(2)
 
index ed406e1bc6b9f4b727a740268e083365e168b54c..ab2dd3a0ff5efd1440659e7c837754a07f74b7b0 100644 (file)
@@ -158,9 +158,9 @@ describe('Test misc endpoints', function () {
       expect(res.text).to.contain('xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"')
       expect(res.text).to.contain('<url><loc>http://localhost:9001/about/instance</loc></url>')
 
-      expect(res.text).to.contain('<video:title><![CDATA[video 1]]></video:title>')
-      expect(res.text).to.contain('<video:title><![CDATA[video 2]]></video:title>')
-      expect(res.text).to.not.contain('<video:title><![CDATA[video 3]]></video:title>')
+      expect(res.text).to.contain('<video:title>video 1</video:title>')
+      expect(res.text).to.contain('<video:title>video 2</video:title>')
+      expect(res.text).to.not.contain('<video:title>video 3</video:title>')
 
       expect(res.text).to.contain('<url><loc>http://localhost:9001/video-channels/channel1</loc></url>')
       expect(res.text).to.contain('<url><loc>http://localhost:9001/video-channels/channel2</loc></url>')