aboutsummaryrefslogtreecommitdiff
path: root/test/functional/treesitter/parser_spec.lua
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2022-06-19 04:19:08 +0200
committerGitHub <noreply@github.com>2022-06-18 19:19:08 -0700
commit7b2b44bce4bff85d9fd1bef09d294ddb889056e4 (patch)
tree9e3f17348e1a8389dce13a61d4391d92bc583d6f /test/functional/treesitter/parser_spec.lua
parent605631ac2992176f7286409320a9971bb5b9cd69 (diff)
downloadrneovim-7b2b44bce4bff85d9fd1bef09d294ddb889056e4.tar.gz
rneovim-7b2b44bce4bff85d9fd1bef09d294ddb889056e4.tar.bz2
rneovim-7b2b44bce4bff85d9fd1bef09d294ddb889056e4.zip
fix(ci): noisy logs, unreliable test #19019
Problem: 1. CI logs have too many (40+) logs mentioning SIGHUP: ``` WRN 2022-06-18T16:05:47.075 T3568.22499.0/c deadly_signal:177: got signal 1 (SIGHUP) WRN 2022-06-18T16:05:47.273 T3569.91095.0/c deadly_signal:177: got signal 1 (SIGHUP) WRN 2022-06-18T16:05:47.651 T3570.59545.0/c deadly_signal:177: got signal 1 (SIGHUP) ``` 2. TS parser test still sometimes fails on BSD CI. 3. remote_spec test fails too often. Solution: 1. Log deadly signals at INFO level. It hasn't been helpful in CI, and for local troubleshooting it's reasonable to adjust the loglevel as needed. 2. Adjust the TS parser test again. ref #18911 3. Skip the remote_spec test. The `--remote` feature was merged before it was fully formed and needs to be revisited.
Diffstat (limited to 'test/functional/treesitter/parser_spec.lua')
-rw-r--r--test/functional/treesitter/parser_spec.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/functional/treesitter/parser_spec.lua b/test/functional/treesitter/parser_spec.lua
index b074fdbd79..7f3b0e770a 100644
--- a/test/functional/treesitter/parser_spec.lua
+++ b/test/functional/treesitter/parser_spec.lua
@@ -184,8 +184,8 @@ void ui_refresh(void)
local firstrun = q(1)
local manyruns = q(100)
- -- First run should be at least 5x slower.
- assert(500 * manyruns < firstrun, ('firstrun: %d ms, manyruns: %d ms'):format(firstrun / 1000, manyruns / 1000))
+ -- First run should be at least 4x slower.
+ assert(400 * manyruns < firstrun, ('firstrun: %d ms, manyruns: %d ms'):format(firstrun / 1000, manyruns / 1000))
end)
it('support query and iter by capture', function()