diff --git a/lsp-server/test/CMakeLists.txt b/lsp-server/test/CMakeLists.txt index f5c6bb4..8e1cf28 100644 --- a/lsp-server/test/CMakeLists.txt +++ b/lsp-server/test/CMakeLists.txt @@ -57,6 +57,6 @@ if(BUILD_TESTS) ${CMAKE_CURRENT_LIST_DIR}/test_cli_startup.py --server $) else() - message(WARNING "python3 not found; skipping test_lsp_json registration") + message(WARNING "python3 not found; skipping test_lsp_json and test_cli_startup registration") endif() endif() diff --git a/lsp-server/test/test_cli_startup.py b/lsp-server/test/test_cli_startup.py index 6b83826..e7163cf 100644 --- a/lsp-server/test/test_cli_startup.py +++ b/lsp-server/test/test_cli_startup.py @@ -16,6 +16,7 @@ def run_server(*arguments: str) -> subprocess.CompletedProcess[bytes]: input=b"", capture_output=True, check=False, + timeout=5, ) diff --git a/test/test_lsp.bash b/test/test_lsp.bash index e6c5867..6d5dcd9 100644 --- a/test/test_lsp.bash +++ b/test/test_lsp.bash @@ -2,4 +2,4 @@ SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" JSON='{"jsonrpc":"2.0","id":1,"method":"initialize","params":{"processId":null,"rootUri":"file:///tmp","capabilities":{}}}' LENGTH=$(echo -n "$JSON" | wc -c) -printf "Content-Length: %d\r\n\r\n%s" $LENGTH "$JSON" | "$SCRIPT_DIR/../vscode/bin/tsl-server" --log=verbose --log-stderr +printf "Content-Length: %d\r\n\r\n%s" $LENGTH "$JSON" | "$SCRIPT_DIR/../vscode/bin/tsl-server" --log=trace