Skip to content

Commit

Permalink
fix: nil error on test single function (#48)
Browse files Browse the repository at this point in the history
  • Loading branch information
michaldziurowski committed May 11, 2023
1 parent b6dc0b1 commit 4e7a879
Showing 1 changed file with 1 addition and 1 deletion.
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
results[file_id].status = test_statuses.fail
end
end
Expand Down

0 comments on commit 4e7a879

Please sign in to comment.