Skip to content

Commit

Permalink
Mark xUnit1031 as Warning instead of Error
Browse files Browse the repository at this point in the history
  • Loading branch information
bradwilson committed Sep 27, 2023
1 parent c1a2cf4 commit 2c5f100
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/xunit.analyzers/Utility/Descriptors.cs
Original file line number Diff line number Diff line change
Expand Up @@ -319,9 +319,10 @@ static DiagnosticDescriptor Rule(
"xUnit1031",
"Do not use blocking task operations in test method",
Usage,
Error,
"Test methods must not use blocking task operations, as they can cause deadlocks. Use an async test method and await instead."
Warning,
"Test methods should not use blocking task operations, as they can cause deadlocks. Use an async test method and await instead."
);

public static DiagnosticDescriptor X1032_TestClassCannotBeNestedInGenericClass { get; } =
Rule(
"xUnit1032",
Expand Down

0 comments on commit 2c5f100

Please sign in to comment.