From c79f7492e2913cdb125d95c7586e39f4292a8167 Mon Sep 17 00:00:00 2001 From: Thomas Lynch Date: Sun, 12 Mar 2023 20:22:43 +1100 Subject: [PATCH] fix tests --- test/posting.js | 8 ++++++-- test/setup.js | 2 ++ 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/test/posting.js b/test/posting.js index eb78d693..1e89e95a 100644 --- a/test/posting.js +++ b/test/posting.js @@ -126,8 +126,12 @@ int main() {...} jest.setTimeout(5*60*1000); //give a generous timeout test('post some threads & replies on test boards', async () => { - await postThreadsWithReplies('test', 30, 5); - await postThreadsWithReplies('test2', 10, 5); + try { + await postThreadsWithReplies('test', 30, 5); + await postThreadsWithReplies('test2', 10, 5); + } catch (e) { + console.error(e) + } jest.setTimeout(5*1000); //back to normal timeout }); diff --git a/test/setup.js b/test/setup.js index a8b4d93a..6a827e44 100644 --- a/test/setup.js +++ b/test/setup.js @@ -222,6 +222,8 @@ module.exports = () => describe('login and create test board', () => { global_limits_post_files_max: '5', global_limits_post_files_size_max: '10485760', global_limits_custom_pages_max_length: '10000', + global_limits_post_files_size_video_resolution: '100000000', + global_limits_post_files_size_image_resolution: '100000000', global_limits_custom_pages_max: '10', global_limits_banner_files_width: '500', global_limits_banner_files_height: '500',