test: Revert broken env! macro for bin resolution

This commit is contained in:
Riz Ashraf committed 2026-09-13 19:02:46 +01:00
1 parent a87e37cb53
commit a9a861abe1
2 files changed
+14 -5

No files matched your search

+5 -2
View File
@@ -44,9 +44,12 @@ fn read_message(stdout: &mut std::process::ChildStdout) -> Option<Value> {
#[test]
fn test_mcp_initialization_and_tools_list() {
// Determine the path to the built binary.
let nvim_exe = env!("CARGO_BIN_EXE_mcp-memory-win-nvim");
let mut nvim_exe = std::env::current_exe().unwrap();
nvim_exe.pop();
nvim_exe.pop();
nvim_exe.push("mcp-memory-win-nvim.exe");
let mut child = Command::new(nvim_exe)
let mut child = Command::new(&nvim_exe)
.stdin(Stdio::piped())
.stdout(Stdio::piped())
.stderr(Stdio::piped())