Running tests with Haystack leaves behind 1000+ indexes

Running tests with Haystack leaves behind 1000+ indexes in Solr which lead to low performance of the full text search. I am guessing that tearDown() or something may be useful to avoid this problem. I hope the Askbot team will solve this soon.

Here is some additional information that may be relevant. I turned on Haystack with Solr following the instructions at http://askbot.org/doc/solr.html I get "Ran 621 tests in 2048.910s" with all tests passing.

Update: Using @override_settings to remove 'haystack' from INSTALLED_APPS as follows did not work. I am suspecting @override_settings does not work with INSTALLED_APPS.

def remove_haystack(appTuple):
    appList = list(appTuple)
    appList.remove('haystack')
    return(tuple(appList))

@override_settings(INSTALLED_APPS=remove_haystack(settings.INSTALLED_APPS))
class OnScreenUpdateNotificationTests(TestCase):
# more codes
apg's avatar
167
apg
asked 2014-01-01 05:50:01 -0600, updated 2014-01-02 01:46:59 -0600
edit flag offensive 0 remove flag close merge delete

Comments

add a comment see more comments