diff --git a/lua/neotest-golang/runspec/namespace.lua b/lua/neotest-golang/runspec/namespace.lua index 29780969..029bb058 100644 --- a/lua/neotest-golang/runspec/namespace.lua +++ b/lua/neotest-golang/runspec/namespace.lua @@ -24,12 +24,12 @@ function M.build(pos) end local test_name = lib.convert.to_gotest_test_name(pos.id) - test_name = lib.convert.to_gotest_regex_pattern(test_name) + local test_name_regexp = lib.convert.to_gotest_regex_pattern(test_name) local cmd_data = { package_or_path = test_folder_absolute_path, position = pos, - regexp = test_name, + regexp = test_name_regexp, } local test_cmd, json_filepath = lib.cmd.test_command(cmd_data) diff --git a/lua/neotest-golang/runspec/test.lua b/lua/neotest-golang/runspec/test.lua index 77f6554c..6cb0b3ae 100644 --- a/lua/neotest-golang/runspec/test.lua +++ b/lua/neotest-golang/runspec/test.lua @@ -26,19 +26,19 @@ function M.build(pos, strategy) end local test_name = lib.convert.to_gotest_test_name(pos.id) - local test_name_regex = lib.convert.to_gotest_regex_pattern(test_name) + local test_name_regexp = lib.convert.to_gotest_regex_pattern(test_name) local cmd_data = { package_or_path = test_folder_absolute_path, position = pos, - regexp = test_name_regex, + regexp = test_name_regexp, } local test_cmd, json_filepath = lib.cmd.test_command(cmd_data) local runspec_strategy = nil if strategy == "dap" then M.assert_dap_prerequisites() - runspec_strategy = dap.get_dap_config(test_name_regex) + runspec_strategy = dap.get_dap_config(test_name_regexp) logger.debug("DAP strategy used: " .. vim.inspect(runspec_strategy)) dap.setup_debugging(test_folder_absolute_path) end