Skip to content

Commit ef4f1eb

Browse files
committed
fix(test): launch Windows child Neovim reliably
1 parent 4b281b9 commit ef4f1eb

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

‎.github/workflows/neovim_testing.yml‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,8 @@ jobs:
175175
Add-Content -Path $env:GITHUB_ENV -Value $bashEnvironment
176176
$windowsEnvironment = "ASTRONVIM_NEVIM_MIXED_PATH=$windowsPath"
177177
Add-Content -Path $env:GITHUB_ENV -Value $windowsEnvironment
178-
$nativeEnvironment = "ASTRONVIM_NEVIM_WINDOWS_PATH=$nvimPath"
178+
$nativeNvim = Join-Path $nvimPath "nvim.exe"
179+
$nativeEnvironment = "ASTRONVIM_NEVIM_WINDOWS_PATH=$nativeNvim"
179180
Add-Content -Path $env:GITHUB_ENV -Value $nativeEnvironment
180181
181182
- name: Verify requested Neovim version

‎tests/e2e/astrocore_spec.lua‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ local T = MiniTest.new_set {
1414
}
1515

1616
local function terminal_sleep_command()
17-
if vim.fn.has "win32" == 1 then return "ping -n 3 127.0.0.1 > NUL" end
17+
if vim.fn.has "win32" == 1 then return "cmd /c exit 0" end
1818
return "sleep 10"
1919
end
2020

0 commit comments

Comments
 (0)