Allow flaky attribute on class and assembly (dotnet/extensions#1742)
* Allow flaky attribute on class and assembly\n\nCommit migrated from 23ba460e27
This commit is contained in:
parent
78daf0166c
commit
73e95c56c1
|
|
@ -45,7 +45,7 @@ namespace Microsoft.Extensions.ObjectPool
|
||||||
{
|
{
|
||||||
// Arrange
|
// Arrange
|
||||||
var pool = new DefaultObjectPool<List<int>>(new ListPolicy());
|
var pool = new DefaultObjectPool<List<int>>(new ListPolicy());
|
||||||
|
|
||||||
// Act
|
// Act
|
||||||
var list = pool.Get();
|
var list = pool.Get();
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -50,7 +50,7 @@ namespace Microsoft.AspNetCore.Testing.xunit
|
||||||
/// </para>
|
/// </para>
|
||||||
/// </example>
|
/// </example>
|
||||||
[TraitDiscoverer("Microsoft.AspNetCore.Testing.xunit.FlakyTestDiscoverer", "Microsoft.AspNetCore.Testing")]
|
[TraitDiscoverer("Microsoft.AspNetCore.Testing.xunit.FlakyTestDiscoverer", "Microsoft.AspNetCore.Testing")]
|
||||||
[AttributeUsage(AttributeTargets.Method)]
|
[AttributeUsage(AttributeTargets.Method | AttributeTargets.Class | AttributeTargets.Assembly)]
|
||||||
public sealed class FlakyAttribute : Attribute, ITraitAttribute
|
public sealed class FlakyAttribute : Attribute, ITraitAttribute
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue