X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=server%2Ftests%2Factivitypub.ts;h=53a04d3638d8ede6de29e13da4965386eda1af70;hb=5cf84858d49f4231cc4efec5e3132f17f65f6cf6;hp=94615c63f0895784f5e57e7e878bc1f0438978e1;hpb=c5d31dba56d669c0df0209761c43c5a6ac7cec4a;p=github%2FChocobozzz%2FPeerTube.git diff --git a/server/tests/activitypub.ts b/server/tests/activitypub.ts index 94615c63f..53a04d363 100644 --- a/server/tests/activitypub.ts +++ b/server/tests/activitypub.ts @@ -10,7 +10,7 @@ describe('Test activitypub', function () { let server: ServerInfo = null before(async function () { - this.timeout(10000) + this.timeout(30000) await flushTests() @@ -20,21 +20,16 @@ describe('Test activitypub', function () { }) it('Should return the account object', async function () { - const res = await makeActivityPubGetRequest(server.url, '/account/root') + const res = await makeActivityPubGetRequest(server.url, '/accounts/root') const object = res.body expect(object.type).to.equal('Person') - expect(object.id).to.equal('http://localhost:9001/account/root') + expect(object.id).to.equal('http://localhost:9001/accounts/root') expect(object.name).to.equal('root') expect(object.preferredUsername).to.equal('root') }) after(async function () { killallServers([ server ]) - - // Keep the logs if the test failed - if (this['ok']) { - await flushTests() - } }) })