Skip to content

Commit 1b423ed

Browse files
committed
Fix test setup
1 parent cc0db74 commit 1b423ed

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

src/tooling/docs-assembler/Cli/LegacyDocsCommands.cs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
using System.Diagnostics.CodeAnalysis;
66
using System.IO.Abstractions;
7+
using Actions.Core.Services;
78
using ConsoleAppFramework;
89
using Elastic.Documentation.Configuration;
910
using Elastic.Documentation.LegacyPageLookup;
@@ -12,7 +13,7 @@
1213

1314
namespace Documentation.Assembler.Cli;
1415

15-
internal sealed class LegacyDocsCommands(ILoggerFactory logger)
16+
internal sealed class LegacyDocsCommands(ILoggerFactory logger, ICoreService githubActionsService)
1617
{
1718
private readonly ILogger<Program> _log = logger.CreateLogger<Program>();
1819

@@ -28,7 +29,7 @@ private void AssignOutputLogger()
2829
public async Task<int> CreateBloomBin(string builtDocsDir, Cancel ctx = default)
2930
{
3031
AssignOutputLogger();
31-
await using var collector = new ConsoleDiagnosticsCollector(logger)
32+
await using var collector = new ConsoleDiagnosticsCollector(logger, githubActionsService)
3233
{
3334
NoHints = true
3435
}.StartAsync(ctx);
@@ -44,7 +45,7 @@ public async Task<int> CreateBloomBin(string builtDocsDir, Cancel ctx = default)
4445
public async Task<int> PageExists(string path, Cancel ctx = default)
4546
{
4647
AssignOutputLogger();
47-
await using var collector = new ConsoleDiagnosticsCollector(logger)
48+
await using var collector = new ConsoleDiagnosticsCollector(logger, githubActionsService)
4849
{
4950
NoHints = true
5051
}.StartAsync(ctx);

tests/Elastic.Documentation.LegacyPageLookup.Tests/LegacyPageLookupTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ namespace Elastic.Documentation.LegacyPageLookup.Tests;
1010
public class LegacyPageLookupTests
1111
{
1212
[Fact]
13-
public void Test1()
13+
public void TestVersions()
1414
{
1515
var legacyPageLookup = new LegacyPageLookup(new FileSystem());
1616
var expected = new Dictionary<string, bool>

0 commit comments

Comments
 (0)