mirror of https://github.com/Chocobozzz/PeerTube
Fix benchmark tests
parent
a219c9100b
commit
68a4b1e587
|
@ -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":')
|
||||
}
|
||||
},
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue