Skip to content

Commit

Permalink
Remove quotes from normalised id
Browse files Browse the repository at this point in the history
  • Loading branch information
sergii4 committed Feb 24, 2024
1 parent c398568 commit d9f9eff
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
4 changes: 2 additions & 2 deletions lua/neotest-go/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -242,14 +242,14 @@ function adapter.prepare_results(tree, lines, go_root, go_module)
if test_result then
local fname = async.fn.tempname()
fn.writefile(test_result.output, fname)
results[value_id] = {
results[value.id] = {
status = test_result.status,
short = table.concat(test_result.output, ""),
output = fname,
}
local errors = utils.get_errors_from_test(test_result, utils.get_filename_from_id(value.id))
if errors then
results[value_id].errors = errors
results[value.id].errors = errors
end
if test_result.status == test_statuses.fail and file_id then
results[file_id].status = test_statuses.fail
Expand Down
1 change: 0 additions & 1 deletion lua/spec/neotest-go/init_spec.lua
Original file line number Diff line number Diff line change
Expand Up @@ -333,7 +333,6 @@ describe("prepare_results", function()
local handle = io.popen(table.concat(command, " "))
local result = handle:read("*a")
handle:close()

local lines = {}
for s in result:gmatch("[^\r\n]+") do
table.insert(lines, s)
Expand Down

0 comments on commit d9f9eff

Please sign in to comment.