diff --git a/pkg/autoupdate/findnew_test.go b/pkg/autoupdate/findnew_test.go index 629b1a587..5ee1e8ce5 100644 --- a/pkg/autoupdate/findnew_test.go +++ b/pkg/autoupdate/findnew_test.go @@ -81,6 +81,7 @@ func TestGetUpdateDir(t *testing.T) { {in: "/a/bin/Test.app/Contents/MacOS/launcher-updates/1569339163/Test.app/Contents/MacOS/launcher", out: filepath.Clean("/a/bin/launcher-updates")}, {in: "", out: ""}, {in: "/", out: ""}, + {in: `C:\Program Files\Kolide\Launcher-kolide-k2\bin\osqueryd.exe`, out: `C:\Program Files\Kolide\Launcher-kolide-k2\bin\osqueryd.exe-updates`}, } for _, tt := range tests { @@ -141,6 +142,11 @@ func TestGetUpdateDir_WithEnvVar(t *testing.T) { //nolint:paralleltest installPath: filepath.Clean("/a/Test.app/Contents/MacOS/launcher"), out: filepath.Clean("/a/bin/launcher-updates"), }, + { + currentPath: `C:\Program Files\Kolide\Launcher-kolide-k2\bin\osqueryd.exe`, + installPath: filepath.Clean(`C:\Program Files\Kolide\Launcher-kolide-k2\bin\launcher.exe`), + out: filepath.Clean(`C:\Program Files\Kolide\Launcher-kolide-k2\bin\osqueryd.exe-updates`), + }, } for _, tt := range tests {