Skip to content

Commit 6b4f094

Browse files
committed
Use "InTest" instead of "OnCI".
1 parent 3c85347 commit 6b4f094

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

internal/runners/clean/run_win.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ func removeInstall(logFile string, params *UninstallParams, cfg *config.Instance
111111
// This is because Windows often thinks the installation.InstallDirMarker and
112112
// constants.StateInstallerCmd files are still in use.
113113
branchDir := filepath.Dir(filepath.Dir(stateExec))
114-
if condition.OnCI() && !params.All {
114+
if condition.InTest() && !params.All {
115115
// On CI, the installation root also contains cache and config directories, and they should
116116
// not be removed. Instead, just remove the installation bin directory.
117117
branchDir = filepath.Dir(stateExec)

0 commit comments

Comments
 (0)