You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In Lucene, there were closeAfterTest() and closeAfterSuite() methods on LuceneTestCase that users can use to ensure resources are cleaned up.
The closeAfterSuite() method in Lucene registers a wrapper class for each Directory that is created, which does a check globally to ensure every Directory is closed. We should implement this to help ensure we aren't leaking any Directory instances in tests.
This also depends on the TestRuleMarkFailure feature, but that is a duplicate of the RuleState enum that already exists in NUnit so it is best to leverage that instead.
The text was updated successfully, but these errors were encountered:
Is there an existing issue for this?
Task description
In Lucene, there were
closeAfterTest()
andcloseAfterSuite()
methods onLuceneTestCase
that users can use to ensure resources are cleaned up.The
closeAfterSuite()
method in Lucene registers a wrapper class for eachDirectory
that is created, which does a check globally to ensure everyDirectory
is closed. We should implement this to help ensure we aren't leaking anyDirectory
instances in tests.This also depends on the
TestRuleMarkFailure
feature, but that is a duplicate of theRuleState
enum that already exists in NUnit so it is best to leverage that instead.The text was updated successfully, but these errors were encountered: