Skip to content

Commit d9a953d

Browse files
authored
Autobahn test suite fix(#4302)
1 parent 63b26d4 commit d9a953d

File tree

11 files changed

+4
-59
lines changed

11 files changed

+4
-59
lines changed

src/Middleware/WebSockets/test/AutobahnTestApp/Properties/launchSettings.json

Lines changed: 0 additions & 42 deletions
This file was deleted.
File renamed without changes.
Lines changed: 2 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
using System;
1+
using System;
22
using System.IO;
33

44
namespace Microsoft.AspNetCore.WebSockets.ConformanceTest
@@ -7,22 +7,7 @@ public class Helpers
77
{
88
public static string GetApplicationPath(string projectName)
99
{
10-
var applicationBasePath = AppContext.BaseDirectory;
11-
12-
var directoryInfo = new DirectoryInfo(applicationBasePath);
13-
do
14-
{
15-
var solutionFileInfo = new FileInfo(Path.Combine(directoryInfo.FullName, "WebSockets.sln"));
16-
if (solutionFileInfo.Exists)
17-
{
18-
return Path.GetFullPath(Path.Combine(directoryInfo.FullName, "test", projectName));
19-
}
20-
21-
directoryInfo = directoryInfo.Parent;
22-
}
23-
while (directoryInfo.Parent != null);
24-
25-
throw new Exception($"Solution root could not be found using {applicationBasePath}");
10+
return Path.GetFullPath(Path.Combine(AppContext.BaseDirectory, projectName));
2611
}
2712
}
2813
}

0 commit comments

Comments
 (0)