From dd51648d8eb7a398874633ebc42fad926a6115ff Mon Sep 17 00:00:00 2001 From: Fredrik Averpil Date: Sat, 4 Jan 2025 13:26:06 +0100 Subject: [PATCH] perf: run 'go test' from dir, not from go.mod path --- lua/neotest-golang/runspec/dir.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lua/neotest-golang/runspec/dir.lua b/lua/neotest-golang/runspec/dir.lua index 810259dc..9fd76321 100644 --- a/lua/neotest-golang/runspec/dir.lua +++ b/lua/neotest-golang/runspec/dir.lua @@ -116,7 +116,7 @@ function M.build(pos) --- @type neotest.RunSpec local run_spec = { command = test_cmd, - cwd = go_mod_folderpath, + cwd = pos.path, context = context, }