Skip to content

Commit

Permalink
add missing yields in @inlineCallbacks methods
Browse files Browse the repository at this point in the history
Fixes: #5215
Fixes: 61b044f (" - use builderid as a foreign key instead of using buildername for the table buildrequests  - addbuilset take a list of buildersID  - check signatures for the BaseScheduler?'s addBuildsetForXxx methods")
Fixes: c20481e ("test: Fix tests to wait for DB shutdown")
Fixes: fb4c782 ("test: Use @defer.inlineCallbacks in httpclientservice tests")
  • Loading branch information
tardyp committed Mar 2, 2020
1 parent d4bd273 commit 81d693a
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
Expand Up @@ -367,7 +367,7 @@ class TestMaybeStartBuilds(TestBRDBase):

@defer.inlineCallbacks
def setUp(self):
super().setUp()
yield super().setUp()

self.startedBuilds = []

Expand Down
2 changes: 1 addition & 1 deletion master/buildbot/test/unit/test_scripts_cleanupdb.py
Expand Up @@ -134,7 +134,7 @@ class TestCleanupDbRealDb(db.RealDatabaseWithConnectorMixin, TestCleanupDb):

@defer.inlineCallbacks
def setUp(self):
super().setUp()
yield super().setUp()

table_names = [
'logs', 'logchunks', 'steps', 'builds', 'builders',
Expand Down
6 changes: 4 additions & 2 deletions master/buildbot/test/unit/test_util_httpclientservice.py
Expand Up @@ -128,8 +128,9 @@ def test_post_auth(self):

class HTTPClientServiceTestTxRequestNoEncoding(HTTPClientServiceTestBase):

@defer.inlineCallbacks
def setUp(self):
super().setUp()
yield super().setUp()
self._http = self.successResultOf(
httpclientservice.HTTPClientService.getService(self.parent, 'http://foo',
headers=self.base_headers,
Expand Down Expand Up @@ -229,8 +230,9 @@ def test_post_auth_digest(self):

class HTTPClientServiceTestTReqNoEncoding(HTTPClientServiceTestBase):

@defer.inlineCallbacks
def setUp(self):
super().setUp()
yield super().setUp()
self.patch(httpclientservice.HTTPClientService, 'PREFER_TREQ', True)
self._http = self.successResultOf(
httpclientservice.HTTPClientService.getService(self.parent, 'http://foo',
Expand Down

0 comments on commit 81d693a

Please sign in to comment.