Skip to content

Commit fe9ca2e

Browse files
avtikhonTotktonada
authored andcommitted
Add default timeout for wait_cond routine
Added default timeout in 60 seconds for wait_cond routine.
1 parent cb49846 commit fe9ca2e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test_run.lua

+1-1
Original file line numberDiff line numberDiff line change
@@ -292,8 +292,8 @@ end
292292
-- by the timeout).
293293
local function wait_cond(self, cond, timeout, delay)
294294
assert(type(cond) == 'function')
295-
assert(timeout ~= nil)
296295

296+
local timeout = timeout or 60
297297
local delay = delay or 0.001
298298

299299
local start_time = clock.monotonic()

0 commit comments

Comments
 (0)