Skip to content

ActivityPub-federated video streaming platform using P2P directly in your web browser

Fix benchmark tests

Chocobozzz68a4b1e58715
diff --git a/scripts/benchmark.ts b/scripts/benchmark.ts
index 37c7401318..623c11e277 100644
--- a/scripts/benchmark.ts
+++ b/scripts/benchmark.ts
@@ -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":')
}
},
{