diff options
author | Bruno Wagner <bwagner@riseup.net> | 2016-01-08 17:34:20 -0200 |
---|---|---|
committer | Bruno Wagner <bwagner@riseup.net> | 2016-01-08 17:34:20 -0200 |
commit | db38cc2919fbe5f52d9eb73f45fd89a84da89682 (patch) | |
tree | cccaad5e84f270961587599d3fe696b2db740072 /service/test/integration | |
parent | 0a29be8e41aa81fd1552b1122bc4ab2a3f2357cf (diff) |
Removed search engine from constant in Indexer
The search engine was being passed as a constant to
the Mail Indexer, that constrained the user agent to
one user (because the search engine is user specific).
I added the search engine as a parameter on the Mail Indexer
initialization so that we can have the Indexer working for
each user.
Diffstat (limited to 'service/test/integration')
-rw-r--r-- | service/test/integration/test_incoming_mail.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/service/test/integration/test_incoming_mail.py b/service/test/integration/test_incoming_mail.py index 8a5540dc..682ca118 100644 --- a/service/test/integration/test_incoming_mail.py +++ b/service/test/integration/test_incoming_mail.py @@ -25,12 +25,11 @@ class IncomingMailTest(SoledadTestBase): @defer.inlineCallbacks def test_message_collection(self): # given - MailboxIndexerListener.SEARCH_ENGINE = self.search_engine mbx = yield self.account.getMailbox('INBOX') input_mail = MailBuilder().build_input_mail() # when - yield MailboxIndexerListener.listen(self.account, 'INBOX', self.mail_store) + yield MailboxIndexerListener.listen(self.account, 'INBOX', self.mail_store, self.search_engine) yield mbx.addMessage(input_mail.raw, [], notify_just_mdoc=False) # then |