Skip to content

Commit 3aa647a

Browse files
committed
Simplify
1 parent 753a4f7 commit 3aa647a

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

dotnet/test/common/Environment/TestWebServer.cs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -53,14 +53,14 @@ public async Task StartAsync()
5353
{
5454
var runfiles = Runfiles.Create();
5555

56+
var standaloneAppserverProbingPath = @"_main/java/test/org/openqa/selenium/environment/appserver";
57+
5658
if (OperatingSystem.IsWindows())
5759
{
58-
standaloneAppserverPath = runfiles.Rlocation(@"_main/java/test/org/openqa/selenium/environment/appserver.exe");
59-
}
60-
else
61-
{
62-
standaloneAppserverPath = runfiles.Rlocation(@"_main/java/test/org/openqa/selenium/environment/appserver");
60+
standaloneAppserverProbingPath += ".exe";
6361
}
62+
63+
standaloneAppserverPath = runfiles.Rlocation(standaloneAppserverProbingPath);
6464
}
6565
catch (FileNotFoundException)
6666
{

0 commit comments

Comments
 (0)