Lucene.Net.Tests.Store.TestCopyBytes: Increased timeout to 1 minute because it 
can take over 20 seconds sometimes


Project: http://git-wip-us.apache.org/repos/asf/lucenenet/repo
Commit: http://git-wip-us.apache.org/repos/asf/lucenenet/commit/f265acc3
Tree: http://git-wip-us.apache.org/repos/asf/lucenenet/tree/f265acc3
Diff: http://git-wip-us.apache.org/repos/asf/lucenenet/diff/f265acc3

Branch: refs/heads/api-work
Commit: f265acc3ad6aae2bde0123429c8084754398a644
Parents: 74e166f
Author: Shad Storhaug <[email protected]>
Authored: Wed Mar 22 00:19:32 2017 +0700
Committer: Shad Storhaug <[email protected]>
Committed: Wed Mar 22 00:19:32 2017 +0700

----------------------------------------------------------------------
 src/Lucene.Net.Tests/Store/TestCopyBytes.cs | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucenenet/blob/f265acc3/src/Lucene.Net.Tests/Store/TestCopyBytes.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Tests/Store/TestCopyBytes.cs 
b/src/Lucene.Net.Tests/Store/TestCopyBytes.cs
index c0e4a03..c5bf9cd 100644
--- a/src/Lucene.Net.Tests/Store/TestCopyBytes.cs
+++ b/src/Lucene.Net.Tests/Store/TestCopyBytes.cs
@@ -1,3 +1,4 @@
+using Lucene.Net.Attributes;
 using Lucene.Net.Randomized.Generators;
 using Lucene.Net.Support;
 using NUnit.Framework;
@@ -34,7 +35,11 @@ namespace Lucene.Net.Store
             return unchecked((byte)((idx % 256) * (1 + (idx / 256))));
         }
 
-        [Test]
+#if !NETSTANDARD
+        // LUCENENET: There is no Timeout on NUnit for .NET Core.
+        [Timeout(60000)]
+#endif
+        [Test, HasTimeout]
         public virtual void TestCopyBytesMem()
         {
             int num = AtLeast(10);

Reply via email to