Skip to content

Commit

Permalink
test_runner: Add 'timeout' parameter to SyncedRun. (#4057)
Browse files Browse the repository at this point in the history
  • Loading branch information
saurtron authored Dec 23, 2024
1 parent 6d0b360 commit 31a6819
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions luaui/Widgets/dbg_test_runner.lua
Original file line number Diff line number Diff line change
Expand Up @@ -615,14 +615,14 @@ end

SyncedProxy = createNestedProxy(Proxy.PREFIX.CALL)

SyncedRun = function(fn)
SyncedRun = function(fn, timeout)
local serializedFn, returnID = rpc:serializeFunctionRun(fn, 3)

returnState = {
waitingForReturnID = returnID,
success = nil,
pendingValueOrError = nil,
timeoutExpireFrame = Spring.GetGameFrame() + config.returnTimeout,
timeoutExpireFrame = Spring.GetGameFrame() + (timeout or config.returnTimeout),
}

log(LOG.DEBUG, "[SyncedRun.send]")
Expand Down

0 comments on commit 31a6819

Please sign in to comment.