Fix misc tests

This commit is contained in:
Chocobozzz 2019-10-22 09:25:35 +02:00
parent e771dbe0aa
commit e39cfd1d91
No known key found for this signature in database
GPG Key ID: 583A612D890159BE
2 changed files with 4 additions and 4 deletions

View 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)

View 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>')