You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucenenet.apache.org by "Doug Sale (JIRA)" <ji...@apache.org> on 2008/07/17 17:37:32 UTC
[jira] Resolved: (LUCENENET-134) broken test cases in unit test
class TestIndexWriterDelete.cs
[ https://issues.apache.org/jira/browse/LUCENENET-134?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Doug Sale resolved LUCENENET-134.
---------------------------------
Resolution: Fixed
2 instances in the code try to use System.Collections.ArrayList.Equals() to compare ArrayList instances.
C# Collections' default Equals(Object o) implementations are useless.
Modified to use SupportClass implementation, as in Lucene.Net 2.1 release.
Fixes following test cases:
- Lucene.Net.Index.TestIndexWriterDelete.TestDeletesOnDiskFull
- Lucene.Net.Index.TestIndexWriterDelete.TestUpdatesOnDiskFull
- Lucene.Net.Index.TestIndexWriterDelete.TestErrorInDocsWriterAdd
Poor conversion of call-stack introspection (used to simulate error case). Converted from using System.Exception.StackTrace property to use System.Diagnostics.StackTrace and System.Diagnostics.StackFrame.
Fixes:
- Lucene.Net.Index.TestIndexWriterDelete.TestErrorAfterApplyDeletes
One method ( TestOperationsOnDiskFull(bool updates) ) was annotated as a test case, but it is merely a helper method. Removed annotation.
Fixes "1 test case not run"
> broken test cases in unit test class TestIndexWriterDelete.cs
> -------------------------------------------------------------
>
> Key: LUCENENET-134
> URL: https://issues.apache.org/jira/browse/LUCENENET-134
> Project: Lucene.Net
> Issue Type: Bug
> Reporter: Doug Sale
> Priority: Minor
> Attachments: TestIndexWriterDelete.patch, TestIndexWriterDelete.patch
>
> Original Estimate: 0h
> Remaining Estimate: 0h
>
> the following test cases fail due to bugs in the unit test:
> Lucene.Net.Index.TestIndexWriterDelete.TestDeletesOnDiskFull
> Lucene.Net.Index.TestIndexWriterDelete.TestUpdatesOnDiskFull
> Lucene.Net.Index.TestIndexWriterDelete.TestErrorAfterApplyDeletes
> Lucene.Net.Index.TestIndexWriterDelete.TestErrorInDocsWriterAdd
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.