~launchpad-pqm/launchpad/devel

« back to all changes in this revision

Viewing changes to lib/lp/services/txlongpoll/server.py

  • Committer: Raphael Badin
  • Date: 2011-09-27 09:25:31 UTC
  • mto: (14032.1.8 longpoll-uri-request)
  • mto: This revision was merged to the branch mainline in revision 14084.
  • Revision ID: raphael.badin@canonical.com-20110927092531-i97y5mcojubc6onn
Don't use RabbitServer in TxLongPollServer.

Show diffs side-by-side

added added

removed removed

Lines of Context:
11
11
from textwrap import dedent
12
12
 
13
13
from txlongpollfixture.server import TxLongPollFixture
14
 
from rabbitfixture.server import RabbitServer
 
14
 
 
15
from canonical.config import config
15
16
 
16
17
 
17
18
class TxLongPollServer(TxLongPollFixture):
23
24
 
24
25
    def setUp(self):
25
26
        super(TxLongPollServer, self).setUp()
26
 
        self.rabbitserver = RabbitServer()
27
 
        self.useFixture(self.rabbitserver)
28
27
        self.config['service_config'] = dedent("""\
29
28
            [rabbitmq]
30
 
            host: localhost:%d
 
29
            host: %s
31
30
            userid: guest
32
31
            password: guest
33
32
            virtual_host: /
35
34
            [txlongpoll]
36
35
            frontend_port: %d
37
36
            """ % (
38
 
                self.rabbitserver.config.port,
 
37
                config.rabbitmq.host,
39
38
                self.config['frontend_port']))