1
0
Fork 0
mirror of https://github.com/Chocobozzz/PeerTube.git synced 2025-10-06 03:50:26 +02:00

Fix benchmark tests

This commit is contained in:
Chocobozzz 2022-03-24 13:42:12 +01:00
parent a219c9100b
commit 68a4b1e587
No known key found for this signature in database
GPG key ID: 583A612D890159BE

View file

@ -55,7 +55,7 @@ async function run () {
path: '/accounts/peertube',
headers: buildAPHeader(),
expecter: (body, status) => {
return status === 200 && body.startsWith('{"type":')
return status === 200 && body.startsWith('{"@context":')
}
},
{
@ -63,7 +63,7 @@ async function run () {
path: '/videos/watch/' + video.uuid,
headers: buildAPHeader(),
expecter: (body, status) => {
return status === 200 && body.startsWith('{"type":"Video"')
return status === 200 && body.startsWith('{"@context":')
}
},
{