fix(ci): undefiend variabe;

This commit is contained in:
Barrett Ruth 2025-09-19 20:44:25 -04:00
parent 793063a68e
commit b219633fc1
2 changed files with 6 additions and 0 deletions

View file

@ -278,6 +278,11 @@ function M.run_problem(ctx, contest_config, is_debug)
input_data = table.concat(vim.fn.readfile(ctx.input_file), '\n') .. '\n'
end
local cache = require('cp.cache')
cache.load()
local timeout_ms, _ = cache.get_constraints(ctx.contest, ctx.contest_id, ctx.problem_id)
timeout_ms = timeout_ms or 2000
local run_cmd = build_command(language_config.test, language_config.executable, substitutions)
local exec_result = execute_command(run_cmd, input_data, timeout_ms)
local formatted_output = format_output(exec_result, ctx.expected_file, is_debug)