Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion lua/neotest-go/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ function adapter.prepare_results(tree, lines, go_root, go_module)
if errors then
results[value.id].errors = errors
end
if test_result.status == test_statuses.fail then
if test_result.status == test_statuses.fail and file_id then
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Isn't file_id always nil here?

Copy link
Collaborator

@sergii4 sergii4 May 11, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why should it be? We always have file level test result

results[file_id].status = test_statuses.fail
end
end
Expand Down