From 1ef91b52cae3fe3e50a188e421208f0853e1a1aa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=B3n=C3=A1n=20Carrigan?= Date: Wed, 3 Aug 2022 21:21:08 +0100 Subject: [PATCH] fix(status): detect result before running --- lua/neotest/consumers/status.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lua/neotest/consumers/status.lua b/lua/neotest/consumers/status.lua index 7fab21a1..ee67a740 100644 --- a/lua/neotest/consumers/status.lua +++ b/lua/neotest/consumers/status.lua @@ -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