Skip to content

Commit ab848cf

Browse files
committed
Fix json output
1 parent 627a1cc commit ab848cf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lua/neotest-go/output.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,9 +58,9 @@ function M.marshal_gotest_output(lines)
5858
-- if a new file and line number is present in the current line, use this info from now on
5959
-- begin collection log data with everything after the file:linenumber
6060
local new_test_file, new_line_number = utils.get_test_file_info(parsed.Output)
61+
testfile, linenumber = new_test_file, new_line_number
6162
if new_test_file and new_line_number then
62-
testfile = new_test_file
63-
linenumber = new_line_number
63+
6464
if not tests[testname].file_output[testfile] then
6565
tests[testname].file_output[testfile] = {}
6666
end

0 commit comments

Comments
 (0)