We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 92f3240 commit 6785dacCopy full SHA for 6785dac
dotnet/test/common/Environment/EnvironmentManager.cs
@@ -24,9 +24,10 @@ public class EnvironmentManager
24
private EnvironmentManager()
25
{
26
string dataFilePath;
27
- var runfiles = Runfiles.Create();
+ Runfiles runfiles = null;
28
try
29
30
+ runfiles = Runfiles.Create();
31
dataFilePath = runfiles.Rlocation("_main/dotnet/test/common/appconfig.json");
32
}
33
catch (FileNotFoundException)
@@ -143,6 +144,8 @@ private EnvironmentManager()
143
144
145
146
string managerFilePath = "";
147
+ runfiles ??= Runfiles.Create();
148
+
149
if (RuntimeInformation.IsOSPlatform(OSPlatform.Windows))
150
151
managerFilePath = runfiles.Rlocation("_main/dotnet/src/webdriver/manager/windows/selenium-manager.exe");
0 commit comments