From 5e2fea3ab9357c228b5d21166092f9a2368e258e Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Mon, 12 Jul 2021 16:06:57 +0200 Subject: [PATCH] Fix search tests --- server/tools/test-live.ts | 2 +- shared/extra-utils/search/search-command.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/server/tools/test-live.ts b/server/tools/test-live.ts index 3d1198d9c..7004e98e8 100644 --- a/server/tools/test-live.ts +++ b/server/tools/test-live.ts @@ -38,7 +38,7 @@ async function run () { const server = await flushAndRunServer(1, {}, [], { hideLogs: false, execArgv: [ '--inspect' ] }) - const cleanup = async () => { + const cleanup = async () => { console.log('Killing server') await killallServers([ server ]) } diff --git a/shared/extra-utils/search/search-command.ts b/shared/extra-utils/search/search-command.ts index b6054f093..7539a21ec 100644 --- a/shared/extra-utils/search/search-command.ts +++ b/shared/extra-utils/search/search-command.ts @@ -90,7 +90,7 @@ export class SearchCommand extends AbstractCommand { ...options, path, - query: { sort: '-publishedAt', ...search }, + query: search, implicitToken: false, defaultExpectedStatus: HttpStatusCode.OK_200 })