Skip to content

Commit

Permalink
fix: neotest consumer fallback to run consumer (#53)
Browse files Browse the repository at this point in the history
  • Loading branch information
stevearc committed Oct 28, 2022
1 parent 2717605 commit 5f16178
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions lua/neotest/consumers/overseer.lua
Original file line number Diff line number Diff line change
Expand Up @@ -64,12 +64,6 @@ function neotest.overseer.run_last(args)
neotest.overseer.rerun_task_group(last_group_id)
end

setmetatable(neotest.overseer, {
__index = function(_, key)
return neotest.run[key]
end,
})

neotest.overseer = setmetatable(neotest.overseer, {
__call = function(_, client_)
client = client_
Expand All @@ -79,6 +73,9 @@ neotest.overseer = setmetatable(neotest.overseer, {
end
return neotest.overseer
end,
__index = function(_, key)
return neotest.run[key]
end,
})

return neotest.overseer

0 comments on commit 5f16178

Please sign in to comment.