diff options
Diffstat (limited to 'tests/unit/test_connection.py')
-rw-r--r-- | tests/unit/test_connection.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/unit/test_connection.py b/tests/unit/test_connection.py index 98048eacf..d9b84fa6d 100644 --- a/tests/unit/test_connection.py +++ b/tests/unit/test_connection.py @@ -122,7 +122,7 @@ class TestSQLConnection(ZuulDBTestCase): def check_results(connection_name): # Grab the sa tables - tenant = self.sched.abide.tenants.get('tenant-one') + tenant = self.scheds.first.sched.abide.tenants.get('tenant-one') reporter = _get_reporter_from_connection_name( tenant.layout.pipelines['check'].success_actions, connection_name @@ -241,7 +241,7 @@ class TestSQLConnection(ZuulDBTestCase): def check_results(connection_name_1, connection_name_2): # Grab the sa tables for resultsdb - tenant = self.sched.abide.tenants.get('tenant-one') + tenant = self.scheds.first.sched.abide.tenants.get('tenant-one') reporter1 = _get_reporter_from_connection_name( tenant.layout.pipelines['check'].success_actions, connection_name_1 @@ -308,7 +308,7 @@ class TestConnectionsBadSQL(ZuulDBTestCase): "Test the SQL reporter fails gracefully when unable to connect" self.config.set('zuul', 'layout_config', 'tests/fixtures/layout-sql-reporter.yaml') - self.sched.reconfigure(self.config) + self.scheds.execute(lambda app: app.sched.reconfigure(app.config)) # Trigger a reporter. If no errors are raised, the reporter has been # disabled correctly |