diff --git a/src/ServiceControl.Audit.Persistence.Tests/PersistenceTestFixture.cs b/src/ServiceControl.Audit.Persistence.Tests/PersistenceTestFixture.cs index eab82cd25c..f3c71782d9 100644 --- a/src/ServiceControl.Audit.Persistence.Tests/PersistenceTestFixture.cs +++ b/src/ServiceControl.Audit.Persistence.Tests/PersistenceTestFixture.cs @@ -2,8 +2,6 @@ { using System; using System.Diagnostics; - using System.IO; - using System.Linq; using System.Threading; using System.Threading.Tasks; using Auditing.BodyStorage; @@ -32,26 +30,6 @@ public virtual Task Cleanup() return configuration?.Cleanup(); } - protected string GetManifestPath() - { - var currentFolder = new DirectoryInfo(TestContext.CurrentContext.TestDirectory); - - while (currentFolder != null) - { - var file = currentFolder.EnumerateFiles("*.sln", SearchOption.TopDirectoryOnly) - .SingleOrDefault(); - - if (file != null) - { - return Path.Combine(file.Directory.FullName, $"ServiceControl.Audit.Persistence.{PersisterName}", "persistence.manifest"); - } - - currentFolder = currentFolder.Parent; - } - - throw new Exception($"Cannot find manifest folder for {PersisterName}"); - } - protected string PersisterName => configuration.Name; protected IAuditDataStore DataStore => configuration.AuditDataStore; diff --git a/src/ServiceControl.Transports.Learning/LearningTransportCustomization.cs b/src/ServiceControl.Transports.Learning/LearningTransportCustomization.cs index 3a36ab02c5..ff8a70be15 100644 --- a/src/ServiceControl.Transports.Learning/LearningTransportCustomization.cs +++ b/src/ServiceControl.Transports.Learning/LearningTransportCustomization.cs @@ -50,7 +50,7 @@ internal static string FindStoragePath(string connectionString) while (true) { - if (Directory.EnumerateFiles(directory).Any(file => file.EndsWith(".sln"))) + if (Directory.EnumerateFiles(directory).Any(file => file.EndsWith(".sln") || file.EndsWith(".slnx"))) { return Path.Combine(directory, ".learningtransport"); }