File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -179,6 +179,11 @@ Helpers.skip_on_macos = function(msg)
179
179
if Helpers .is_macos () then MiniTest .skip (msg or ' Does not test properly on MacOS' ) end
180
180
end
181
181
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
+
182
187
-- Standardized way of dealing with time
183
188
Helpers .is_slow = function () return Helpers .is_ci () and (Helpers .is_windows () or Helpers .is_macos ()) end
184
189
Helpers .skip_if_slow = function (msg )
188
193
Helpers .get_time_const = function (delay )
189
194
local coef = 1
190
195
if Helpers .is_ci () then
196
+ if Helpers .is_linux () then coef = 2 end
191
197
if Helpers .is_windows () then coef = 5 end
192
198
if Helpers .is_macos () then coef = 15 end
193
199
end
206
212
Helpers .get_n_retry = function (n )
207
213
local coef = 1
208
214
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
210
217
if Helpers .is_macos () then coef = 4 end
211
218
end
212
219
return coef * n
You can’t perform that action at this time.
0 commit comments