Skip to content

Commit 1485361

Browse files
committed
Clean
1 parent aebbdc6 commit 1485361

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

dotnet/test/common/Environment/TestWebServer.cs

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@
2323
using System.IO;
2424
using System.Net;
2525
using System.Net.Http;
26-
using System.Text;
2726
using System.Threading.Tasks;
2827

2928
namespace OpenQA.Selenium.Environment
@@ -55,12 +54,10 @@ public async Task StartAsync()
5554
var runfiles = Runfiles.Create();
5655
standaloneAppserverPath = runfiles.Rlocation(@"_main/java/test/org/openqa/selenium/environment/appserver");
5756
}
58-
// means we are NOT running under bazel runtime
59-
// most likely in IDE
6057
catch (FileNotFoundException)
6158
{
62-
//var baseDirectory = AppContext.BaseDirectory;
63-
//standaloneAppserverPath = Path.Combine(baseDirectory, "../../../../../../bazel-bin/java/test/org/openqa/selenium/environment/appserver");
59+
// means we are NOT running under bazel runtime
60+
// most likely in IDE
6461
}
6562

6663
var processFileName = standaloneAppserverPath ?? "bazel";
@@ -70,6 +67,8 @@ public async Task StartAsync()
7067
if (standaloneAppserverPath is null)
7168
{
7269
processArguments = $"run //java/test/org/openqa/selenium/environment:appserver {processArguments}";
70+
71+
// Override project root path to be exact selenium repo path, not 'bazel-bin'
7372
projectRootPath = Path.Combine(AppContext.BaseDirectory, "../../../../../..");
7473
}
7574

0 commit comments

Comments
 (0)