Skip to content
Merged
Show file tree
Hide file tree
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-dotnet/frameworks/test-framework-utils.lua
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ function FrameworkUtils.get_test_framework_utils(source, custom_attribute_args)
)
]]

async.util.scheduler()
async.scheduler()
local root = vim.treesitter.get_string_parser(source, "c_sharp"):parse()[1]:root()
local parsed_query = vim.treesitter.parse_query("c_sharp", framework_query)
for _, captures in parsed_query:iter_matches(root, source) do
Expand Down
6 changes: 3 additions & 3 deletions lua/neotest-dotnet/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -129,17 +129,17 @@ DotnetNeotestAdapter.build_spec = function(args)
return specs
else
local spec = specs[1]
local send_debug_start, await_debug_start = async.control.channel.oneshot()
local debug_future = async.control.future()
logger.info("neotest-dotnet: Running tests in debug mode")

dap_utils.start_debuggable_test(spec.command, function(dotnet_test_pid)
spec.strategy = dap_utils.get_dap_adapter_config(dotnet_test_pid, dap_args)
spec.command = nil
logger.info("neotest-dotnet: Sending debug start")
send_debug_start()
debug_future.set()
end)

await_debug_start()
debug_future.wait()
end
end

Expand Down
2 changes: 1 addition & 1 deletion tests/adapter_root_spec.lua
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
local async = require("plenary.async.tests")
local async = require("nio").tests

describe("root when using solution option", function()
require("neotest").setup({
Expand Down
2 changes: 1 addition & 1 deletion tests/build_spec_utils_spec.lua
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
local async = require("plenary.async.tests")
local async = require("nio").tests
local mock = require("luassert.mock")
local stub = require("luassert.stub")
local lib = require("neotest.lib")
Expand Down
2 changes: 1 addition & 1 deletion tests/xunit/adapter_discover_positions_spec.lua
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
local async = require("plenary.async.tests")
local async = require("nio").tests
local plugin = require("neotest-dotnet")
local Tree = require("neotest.types").Tree

Expand Down