From 069df718711f6292e457db6261570185528f22ca Mon Sep 17 00:00:00 2001 From: Barrett Ruth Date: Sat, 20 Sep 2025 13:16:52 -0400 Subject: [PATCH] fix(ci): test --- lua/cp/execute.lua | 2 +- spec/execute_spec.lua | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/lua/cp/execute.lua b/lua/cp/execute.lua index c78de3d..9dc30cc 100644 --- a/lua/cp/execute.lua +++ b/lua/cp/execute.lua @@ -69,7 +69,7 @@ end ---@param language_config table ---@param substitutions table ----@return {code: integer, stderr: string} +---@return {code: integer, stdout: string, stderr: string} function M.compile_generic(language_config, substitutions) vim.validate({ language_config = { language_config, 'table' }, diff --git a/spec/execute_spec.lua b/spec/execute_spec.lua index 1a31e4a..cee3db6 100644 --- a/spec/execute_spec.lua +++ b/spec/execute_spec.lua @@ -396,14 +396,12 @@ describe('cp.execute', function() describe('integration tests', function() it('captures interleaved stderr/stdout with ANSI colors', function() - local start_time = vim.uv.hrtime() local python_cmd = { 'sh', '-c', "python3 -c \"import sys; print('\\033[32mstdout: \\033[1mSuccess\\033[0m'); print('\\033[31mstderr: \\033[1mWarning\\033[0m', file=sys.stderr); print('plain stdout')\" 2>&1", } local result = vim.system(python_cmd, { timeout = 2000, text = false }):wait() - local execution_time = (vim.uv.hrtime() - start_time) / 1000000 local ansi = require('cp.ansi') local combined_output = ansi.bytes_to_string(result.stdout or '')