Skip to content

Commit c13786d

Browse files
Fix test case source
1 parent 6b793d6 commit c13786d

1 file changed

Lines changed: 3 additions & 7 deletions

File tree

src/ServiceControlInstaller.Engine.UnitTests/InstallationTests.cs

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
namespace ServiceControl.Audit.Persistence.Tests
22
{
3+
using System.Collections.Generic;
34
using System.IO;
4-
using System.Linq;
55
using System.Text.Json;
66
using NUnit.Framework;
77
using Particular.Approvals;
@@ -64,15 +64,11 @@ public void Audit_install_should_write_expected_config_file(string manifestPath)
6464
}
6565
}
6666

67-
public static string[][] GetAuditPersistenceManifestPaths()
67+
public static IEnumerable<string> GetAuditPersistenceManifestPaths()
6868
{
6969
var deployPath = Path.GetFullPath(Path.Combine(TestContext.CurrentContext.TestDirectory, "..", "..", "..", "..", "..", "deploy"));
7070
var persistersPath = Path.Combine(deployPath, "Particular.ServiceControl.Audit", "Persisters");
71-
var manifestPaths = Directory.GetFiles(persistersPath, "persistence.manifest", SearchOption.AllDirectories);
72-
73-
return manifestPaths
74-
.Select(path => new string[] { path })
75-
.ToArray();
71+
return Directory.GetFiles(persistersPath, "persistence.manifest", SearchOption.AllDirectories);
7672
}
7773
}
7874
}

0 commit comments

Comments
 (0)