Skip to content

Commit

Permalink
Wait for external command to finish only on Windows.
Browse files Browse the repository at this point in the history
  • Loading branch information
manugarg committed Mar 30, 2024
1 parent 4179119 commit 0459bb0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion probes/external/external_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -698,7 +698,7 @@ func TestProbeStartCmdIfNotRunning(t *testing.T) {
// Windows has trouble deleting executable that are still running.
// This result in an error on test cleanup. So on Windows, we make
// sure command finishes before we exit.
if runtime.GOOS != "windows" {
if runtime.GOOS == "windows" {
waitForCmdToEnd(p)
}
})
Expand Down

0 comments on commit 0459bb0

Please sign in to comment.