Skip to content

Commit cf0c0bd

Browse files
authored
Fix sln references (#5286)
* Check for slnx file also * Remove unused method from test fixture
1 parent 333ee65 commit cf0c0bd

File tree

2 files changed

+1
-23
lines changed

2 files changed

+1
-23
lines changed

src/ServiceControl.Audit.Persistence.Tests/PersistenceTestFixture.cs

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22
{
33
using System;
44
using System.Diagnostics;
5-
using System.IO;
6-
using System.Linq;
75
using System.Threading;
86
using System.Threading.Tasks;
97
using Auditing.BodyStorage;
@@ -32,26 +30,6 @@ public virtual Task Cleanup()
3230
return configuration?.Cleanup();
3331
}
3432

35-
protected string GetManifestPath()
36-
{
37-
var currentFolder = new DirectoryInfo(TestContext.CurrentContext.TestDirectory);
38-
39-
while (currentFolder != null)
40-
{
41-
var file = currentFolder.EnumerateFiles("*.sln", SearchOption.TopDirectoryOnly)
42-
.SingleOrDefault();
43-
44-
if (file != null)
45-
{
46-
return Path.Combine(file.Directory.FullName, $"ServiceControl.Audit.Persistence.{PersisterName}", "persistence.manifest");
47-
}
48-
49-
currentFolder = currentFolder.Parent;
50-
}
51-
52-
throw new Exception($"Cannot find manifest folder for {PersisterName}");
53-
}
54-
5533
protected string PersisterName => configuration.Name;
5634

5735
protected IAuditDataStore DataStore => configuration.AuditDataStore;

src/ServiceControl.Transports.Learning/LearningTransportCustomization.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ internal static string FindStoragePath(string connectionString)
5050

5151
while (true)
5252
{
53-
if (Directory.EnumerateFiles(directory).Any(file => file.EndsWith(".sln")))
53+
if (Directory.EnumerateFiles(directory).Any(file => file.EndsWith(".sln") || file.EndsWith(".slnx")))
5454
{
5555
return Path.Combine(directory, ".learningtransport");
5656
}

0 commit comments

Comments
 (0)