rsdn / CodeJam

Set of handy reusable .NET components that can simplify your daily work and save your time when you copy and paste your favorite helper methods and classes from one project to another
MIT License
259 stars 35 forks source link

Improve tests time #131

Closed NN--- closed 3 years ago

NN--- commented 3 years ago

Several tests are too slow.

CodeJam.Ranges.IntervalTreeTests.TestSameStartRanges CodeJam.Tests.dll 8 sec 200 ms

CodeJam.Ranges.IntervalTreeTests.TestSameEndRanges CodeJam.Tests.dll 8 sec 406 ms

CodeJam.Threading.AsyncLockTest.LockCancellationTest CodeJam.Tests.dll 2 sec 16 ms

CodeJam.Threading.TaskHelperTests.TestRunWithTimeoutCallbackTimeoutCancellation CodeJam.Tests.dll 2 sec 16 ms

CodeJam.Threading.TaskHelperTests.TestWithTimeoutCallbackTimeoutCancellation CodeJam.Tests.dll 1 sec 992 ms

CodeJam.Threading.TaskHelperTests.TestWaitForCancellationTimeout CodeJam.Tests.dll 1 sec 17 ms CodeJam.Threading.TaskHelperTests.TestWithTimeoutFailure CodeJam.Tests.dll 1 sec 3 ms

CodeJam.Threading.TaskHelperTests.TestRunWithTimeoutCallbackFailure CodeJam.Tests.dll 1 sec

CodeJam.Threading.TaskHelperTests.ForEachAsyncCancellation CodeJam.Tests.dll 2 sec 53 ms

.Threading.TaskHelperTests.TestRunWithTimeoutFailure CodeJam.Tests.dll 1 sec 143 ms

NN--- commented 3 years ago

133 addresses some of these issues.