From cc1c722092d9ed4ae2984e1525db1af3b031dff1 Mon Sep 17 00:00:00 2001 From: Julian Lam Date: Tue, 27 Oct 2020 16:55:08 -0400 Subject: [PATCH] fix: breaking test from 0db0231cff097a6e983683e61284a72d42bd594d Also lowered export timeout to 5s --- public/openapi/read/unread.yaml | 2 ++ test/api.js | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/public/openapi/read/unread.yaml b/public/openapi/read/unread.yaml index 68555426e1..49360647da 100644 --- a/public/openapi/read/unread.yaml +++ b/public/openapi/read/unread.yaml @@ -49,6 +49,8 @@ get: type: number viewcount: type: number + postercount: + type: number teaserPid: type: number nullable: true diff --git a/test/api.js b/test/api.js index 640160fcb9..2b105d96d0 100644 --- a/test/api.js +++ b/test/api.js @@ -119,7 +119,7 @@ describe('Read API', async () => { await socketUser.exportPosts({ uid: adminUid }, { uid: adminUid }); await socketUser.exportUploads({ uid: adminUid }, { uid: adminUid }); // wait for export child process to complete - await wait(20000); + await wait(5000); // Attach a search hook so /api/search is enabled plugins.registerHook('core', {