Skip to content

Commit 776e98f

Browse files
committed
Change test to call sync invoke
1 parent b0af526 commit 776e98f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/Microsoft.OpenApi.Hidi.Tests/Services/OpenApiServiceTests.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,15 +109,15 @@ public async Task ShowCommandGeneratesMermaidMarkdownFileWithMermaidDiagram()
109109
}
110110

111111
[Fact]
112-
public async Task InvokeShowCommand()
112+
public void InvokeShowCommand()
113113
{
114114
var rootCommand = Program.CreateRootCommand();
115115
var args = new string[] { "show", "-d", ".\\UtilityFiles\\SampleOpenApi.yml", "-o", "sample.md" };
116116
var parseResult = rootCommand.Parse(args);
117117
var handler = rootCommand.Subcommands.Where(c => c.Name == "show").First().Handler;
118118
var context = new InvocationContext(parseResult);
119119

120-
await handler.InvokeAsync(context);
120+
handler.Invoke(context);
121121

122122
var output = File.ReadAllText("sample.md");
123123
Assert.Contains("graph LR", output);

0 commit comments

Comments
 (0)