From a3dd6ebcc4d38d8db749e0267547ef3f0b04a8ce Mon Sep 17 00:00:00 2001 From: ray-x Date: Tue, 24 Aug 2021 17:37:45 +1000 Subject: [PATCH] spec test, allow gopls start --- tests/reference_spec.lua | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/tests/reference_spec.lua b/tests/reference_spec.lua index 265ce6f..9aa1827 100644 --- a/tests/reference_spec.lua +++ b/tests/reference_spec.lua @@ -31,7 +31,9 @@ describe("should run lsp reference", function() preview_height = 0.35, -- max height of preview windows border = 'none' }) - + -- allow gopls start + vim.wait(200, function() + end) vim.fn.setpos(".", {bufn, 15, 4, 0}) -- width vim.bo.filetype = "go" @@ -62,6 +64,10 @@ describe("should run lsp reference", function() preview_height = 0.35, -- max height of preview windows border = 'none' }) + + -- allow gopls start + vim.wait(200, function() + end) local result = { { range = {['end'] = {character = 6, line = 14}, start = {character = 1, line = 14}},