-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Enable c.indexing during tests, but patch it to not defer operations:
We need to enable collective.indexing during tests in order to create Solr tests (because ftw.solr integrates itself by providing an IIndexQueueProcessor). So we need c.indexing's pluggable IndexQueueProcessor mechanism, but we don't want the unpredictable behavior of reindexes that are deferred until the end of the transaction during tests (or the queue getting flushed at arbitrary points). We therefore patch the IndexQueue's operation methods so that they always immediately process the queue after being called.
- Loading branch information
Showing
3 changed files
with
45 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters