Skip to content

Commit 0bdaea1

Browse files
committed
chore: fix failed test on CI by resetting error count
1 parent 314e0dd commit 0bdaea1

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

test/docfx.Tests/CommandLineTest.cs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
11
// Licensed to the .NET Foundation under one or more agreements.
22
// The .NET Foundation licenses this file to you under the MIT license.
33

4+
using Docfx.Common;
5+
46
namespace Docfx.Tests;
57

68
[Collection("docfx STA")]
7-
public static class CommandLineTest
9+
public class CommandLineTest
810
{
911
[Fact]
1012
public static void PrintsVersion()
@@ -38,6 +40,7 @@ public static void FailForUnknownArgs()
3840
public static void InitBuild()
3941
{
4042
Assert.Equal(0, Program.Main(["init", "-o", "init", "-y"]));
43+
Logger.ResetCount();
4144
Assert.Equal(0, Program.Main(["init/docfx.json"]));
4245
}
4346
}

0 commit comments

Comments
 (0)