~launchpad-pqm/launchpad/devel

« back to all changes in this revision

Viewing changes to lib/lp/testing/tests/test_pgsql.py

  • Committer: Launchpad Patch Queue Manager
  • Date: 2011-09-05 16:05:38 UTC
  • mfrom: (13813.1.7 disco)
  • Revision ID: launchpad@pqm.canonical.com-20110905160538-kyybbc6zai8958z9
[r=wgrant, allenap,
 jtv][bug=836662] pgbouncer test fixture and db disconnection fix for
 branch-rewrite.py

Show diffs side-by-side

added added

removed removed

Lines of Context:
53
53
        fixture.setUp()
54
54
        self.addCleanup(fixture.dropDb)
55
55
        self.addCleanup(fixture.tearDown)
56
 
        expected_value = 'dbname=%s' % fixture.dbname
 
56
        expected_value = 'dbname=%s host=localhost' % fixture.dbname
57
57
        self.assertEqual(expected_value, dbconfig.rw_main_master)
58
58
        self.assertEqual(expected_value, dbconfig.rw_main_slave)
59
59
        with ConfigUseFixture(BaseLayer.appserver_config_name):