Skip to content

Commit fe2a452

Browse files
committed
Build: Fixed tests build on release mode
1 parent 5f9e9c5 commit fe2a452

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

test/NumSharp.UnitTest/Backends/Unmanaged/StackedMemoryPoolTests.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
using System;
22
using System.Collections;
33
using System.Collections.Generic;
4+
using System.Diagnostics;
45
using System.Text;
56
using System.Threading;
67
using FluentAssertions;
@@ -15,6 +16,7 @@ public class StackedMemoryPoolTests
1516
[TestMethod]
1617
public void Case1()
1718
{
19+
#if DEBUG
1820
var l = new Stack<IntPtr>();
1921
var stack = new StackedMemoryPool(12, 100);
2022
stack.GarbageCollectionDelay = 1000;
@@ -36,7 +38,7 @@ public void Case1()
3638

3739
stack.Return(l.Pop());
3840
manual.Wait(5000).Should().BeTrue();
41+
#endif
3942
}
4043
}
4144
}
42-

0 commit comments

Comments
 (0)