Skip to content

Commit

Permalink
fix(status): detect result before running
Browse files Browse the repository at this point in the history
  • Loading branch information
rcarriga committed Aug 3, 2022
1 parent 6a825a6 commit 1ef91b5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lua/neotest/consumers/status.lua
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,11 @@ local function init(client)

local function place_sign(buf, pos, adapter_id, results)
local status
if client:is_running(pos.id, { adapter = adapter_id }) then
status = "running"
elseif results[pos.id] then
if results[pos.id] then
local result = results[pos.id]
status = result.status
elseif client:is_running(pos.id, { adapter = adapter_id }) then
status = "running"
end
if not status then
return
Expand Down

0 comments on commit 1ef91b5

Please sign in to comment.