diff --git a/application/server/parallelization_test.go b/application/server/parallelization_test.go index 9b9546243..c37323f74 100644 --- a/application/server/parallelization_test.go +++ b/application/server/parallelization_test.go @@ -70,6 +70,8 @@ func Test_Concurrent_CLI_Runs(t *testing.T) { } wg.Wait() + setUniqueCliPath(t, c) + clientParams := types.InitializeParams{ WorkspaceFolders: workspaceFolders, InitializationOptions: types.Settings{ diff --git a/application/server/server_smoke_test.go b/application/server/server_smoke_test.go index a400fb3ba..ffb59ef3a 100644 --- a/application/server/server_smoke_test.go +++ b/application/server/server_smoke_test.go @@ -719,8 +719,7 @@ func prepareInitParams(t *testing.T, cloneTargetDir string, c *config.Config) ty Uri: uri.PathToUri(cloneTargetDir), } - discovery := install.Discovery{} - c.CliSettings().SetPath(filepath.Join(t.TempDir(), discovery.ExecutableName(false))) + setUniqueCliPath(t, c) clientParams := types.InitializeParams{ WorkspaceFolders: []types.WorkspaceFolder{folder}, @@ -742,6 +741,11 @@ func prepareInitParams(t *testing.T, cloneTargetDir string, c *config.Config) ty return clientParams } +func setUniqueCliPath(t *testing.T, c *config.Config) { + discovery := install.Discovery{} + c.CliSettings().SetPath(filepath.Join(t.TempDir(), discovery.ExecutableName(false))) +} + func checkFeatureFlagStatus(t *testing.T, c *config.Config, loc *server.Local) { t.Helper() // only check on mt-us