Skip to content

Commit df1559e

Browse files
committed
ci: increase time delay and n_retry on Linux CI
1 parent 50e2041 commit df1559e

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

tests/helpers.lua

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,6 +179,11 @@ Helpers.skip_on_macos = function(msg)
179179
if Helpers.is_macos() then MiniTest.skip(msg or 'Does not test properly on MacOS') end
180180
end
181181

182+
Helpers.is_linux = function() return vim.fn.has('linux') == 1 end
183+
Helpers.skip_on_linux = function(msg)
184+
if Helpers.is_linux() then MiniTest.skip(msg or 'Does not test properly on Linux') end
185+
end
186+
182187
-- Standardized way of dealing with time
183188
Helpers.is_slow = function() return Helpers.is_ci() and (Helpers.is_windows() or Helpers.is_macos()) end
184189
Helpers.skip_if_slow = function(msg)
@@ -188,6 +193,7 @@ end
188193
Helpers.get_time_const = function(delay)
189194
local coef = 1
190195
if Helpers.is_ci() then
196+
if Helpers.is_linux() then coef = 2 end
191197
if Helpers.is_windows() then coef = 5 end
192198
if Helpers.is_macos() then coef = 15 end
193199
end
@@ -206,7 +212,8 @@ end
206212
Helpers.get_n_retry = function(n)
207213
local coef = 1
208214
if Helpers.is_ci() then
209-
if Helpers.is_windows() then coef = 2 end
215+
if Helpers.is_linux() then coef = 2 end
216+
if Helpers.is_windows() then coef = 3 end
210217
if Helpers.is_macos() then coef = 4 end
211218
end
212219
return coef * n

0 commit comments

Comments
 (0)