From 68a4b1e587150e58bc8471fd32c6d7316095afa4 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Thu, 24 Mar 2022 13:42:12 +0100 Subject: [PATCH] Fix benchmark tests --- scripts/benchmark.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/benchmark.ts b/scripts/benchmark.ts index 37c740131..623c11e27 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":') } }, { -- 2.41.0