Skip to content

Commit

Permalink
Fix json output
Browse files Browse the repository at this point in the history
  • Loading branch information
sergii4 committed Feb 24, 2024
1 parent 627a1cc commit 45cf6ca
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lua/neotest-go/output.lua
Original file line number Diff line number Diff line change
@@ -58,9 +58,8 @@ function M.marshal_gotest_output(lines)
-- if a new file and line number is present in the current line, use this info from now on
-- begin collection log data with everything after the file:linenumber
local new_test_file, new_line_number = utils.get_test_file_info(parsed.Output)
testfile, linenumber = new_test_file, new_line_number
if new_test_file and new_line_number then
testfile = new_test_file
linenumber = new_line_number
if not tests[testname].file_output[testfile] then
tests[testname].file_output[testfile] = {}
end

0 comments on commit 45cf6ca

Please sign in to comment.