Fixes several slow tests (#295)#298
Merged
NightOwl888 merged 26 commits intoapache:masterfrom NightOwl888:fix/slow-util-tests-1Jun 24, 2020
+1,051-604
Commits
Commits on Jun 20, 2020
Commits on Jun 23, 2020
addresses apache#295 optimised some Assert calls using long, long. NUnit seems to not treat these as numerics or at least elongates test times.
committedMichaeladdresses apache#295 updated lucene test case asserts and modified IEnumerable to IList to take advantage of indexing
committedMichael- committedMichael
- committedMichael
- committedMichael
Lucene.Net.Util.OfflineSorter: Removed unnecessary calls to ElementAt() and Count() LINQ methods, fixed boxing issue with the Assert.AreEquals call when comparing files (addresses apache#295).
committedLucene.Net.Tests.Suggest.Fst.FSTCompletionTest: Removed unnecessary calls to ElementAt() and Count() LINQ (Addresses apache#261)
committedLucene.Net.TestFramework: Added overloads for int to Assert.AreEqual (addresses apache#295, apache#261)
committed- committed
SWEEP: Lucene.Net.Util: Added using for Assert class to ensure our strongly-typed overloads are being called to reduce boxing. (addresses apache#295, apache#261)
committedLucene.Net.Tests.Util.TestOfflineSorter::AssertFilesIdentical(): Changed test to utilize the J2N's ArrayEqualityComparer to optimize the speed of the test (apache#295, apache#261)
committed- committed
- committed
Commits on Jun 24, 2020
Lucene.Net.Tests.Search + Lucene.Net.Tests.Support: Switched to using the Assert class in the test framework instead of NUnit (apache#295, apache#261)
committedLucene.Net.Tests.Index: Switched to using the Assert class in the test framework instead of NUnit (apache#295, apache#261)
committedLucene.Net.Tests.Analysis + Lucene.Net.Tests.Codecs + Lucene.Net.Tests.Document: Switched to using the Assert class from the test framework instead of NUnit (apache#295, apache#261)
committedLucene.Net.Tests.ICU: Switched to using the Assert class from the test framework instead of NUnit (apache#295, apache#261).
committedLucene.Net.Tests.Analysis.Phonetic: Switched to using the Assert class from the test framework instead of NUnit (apache#295, apache#261)
committedLucene.Net.Tests.Facet: Switched to using the Assert class from the test framework instead of NUnit (apache#295, apache#261)
committed- committed
- committed
- committed
- committed
Downgraded tests from netcoreapp2.2 to netcoreapp2.1 because 2.2 is no longer supported and 2.1 is: https://devblogs.microsoft.com/dotnet/net-core-2-2-will-reach-end-of-life-on-december-23-2019/
committed- committed