Skip to content

Commit cb2cf5d

Browse files
committed
Use NUnit's [Timeout] attribute on .NET Core
See nunit/nunit#3190
1 parent e902f0e commit cb2cf5d

File tree

1 file changed

+0
-12
lines changed

1 file changed

+0
-12
lines changed

test/Npgsql.Tests/TestUtil.cs

-12
Original file line numberDiff line numberDiff line change
@@ -279,16 +279,4 @@ public enum PrepareOrNot
279279
Prepared,
280280
NotPrepared
281281
}
282-
283-
#if !NET461
284-
// When using netcoreapp, we use NUnit's portable library which doesn't include TimeoutAttribute
285-
// (probably because it can't enforce it). So we define it here to allow us to compile, once there's
286-
// proper support for netcoreapp this should be removed.
287-
// https://github.com/nunit/nunit/issues/1638
288-
[AttributeUsage(AttributeTargets.Assembly | AttributeTargets.Class | AttributeTargets.Method, Inherited = false)]
289-
class TimeoutAttribute : Attribute
290-
{
291-
public TimeoutAttribute(int timeout) {}
292-
}
293-
#endif
294282
}

0 commit comments

Comments
 (0)