From b0546318dbdbaba56725a1b43dcb11b3d4115cf3 Mon Sep 17 00:00:00 2001 From: hangyav Date: Sat, 6 Jul 2024 12:36:36 +0200 Subject: [PATCH] fix: adding more wait time in test not to fail on slower platforms --- tests/analysers/analyser_test.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/tests/analysers/analyser_test.py b/tests/analysers/analyser_test.py index aaa4c40..808cbc0 100644 --- a/tests/analysers/analyser_test.py +++ b/tests/analysers/analyser_test.py @@ -330,7 +330,7 @@ def test_diagnostics_bug2(json_converter, langtool_ls_onsave): langtool_ls_onsave.notify_did_open( json_converter.unstructure(open_params) ) - assert done.wait(30) + assert done.wait(60) done.clear() change_params = DidChangeTextDocumentParams( @@ -351,7 +351,7 @@ def test_diagnostics_bug2(json_converter, langtool_ls_onsave): langtool_ls_onsave.notify_did_change( json_converter.unstructure(change_params) ) - assert done.wait(30) + assert done.wait(60) done.clear() save_params = DidSaveTextDocumentParams( @@ -362,7 +362,7 @@ def test_diagnostics_bug2(json_converter, langtool_ls_onsave): langtool_ls_onsave.notify_did_save( json_converter.unstructure(save_params) ) - assert done.wait(30) + assert done.wait(60) done.clear() change_params = DidChangeTextDocumentParams( @@ -383,7 +383,7 @@ def test_diagnostics_bug2(json_converter, langtool_ls_onsave): langtool_ls_onsave.notify_did_change( json_converter.unstructure(change_params) ) - assert done.wait(30) + assert done.wait(60) done.clear() save_params = DidSaveTextDocumentParams( @@ -394,7 +394,7 @@ def test_diagnostics_bug2(json_converter, langtool_ls_onsave): langtool_ls_onsave.notify_did_save( json_converter.unstructure(save_params) ) - assert done.wait(30) + assert done.wait(60) done.clear() exp_lst = [