Skip to content

Commit f2fe2cf

Browse files
committed
Again try making a few tests less flaky...
1 parent 875f9fa commit f2fe2cf

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

spec/helpers.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -351,7 +351,7 @@ function assert.infoview_contents_at(position)
351351
return {
352352
are = function(expected)
353353
expected = _expected { expected }
354-
local element = infoview.contents_at(position)
354+
local element = infoview.contents_at(position, { timeout = TIMEOUT })
355355
local got = element:to_string()
356356
assert.is.equal(expected, got)
357357
end,

spec/restart_file_spec.lua

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@ describe('restart file', function()
6969
helpers.wait:for_lsp()
7070

7171
dependent_win:move_cursor { 2, 8 }
72+
helpers.wait:for_processing()
7273
assert.infoview_contents.are [[
7374
▼ 2:8-2:19: error:
7475
Unknown identifier `addedByTest`

0 commit comments

Comments
 (0)