Skip to content

Commit

Permalink
fix for trailing slash in marathon test
Browse files Browse the repository at this point in the history
  • Loading branch information
tardyp committed Dec 9, 2016
1 parent a9a958d commit 4550c33
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions master/buildbot/test/unit/test_worker_marathon.py
Expand Up @@ -45,7 +45,7 @@ def loseConnection(self):
self.n()


class TestHyperLatentWorker(unittest.SynchronousTestCase):
class TestMarathonLatentWorker(unittest.SynchronousTestCase):
def setUp(self):
self.reactor = TestReactor()
_setReactor(self.reactor)
Expand All @@ -62,19 +62,19 @@ class FakeResult(object):
_setReactor(None)

def test_constructor_normal(self):
worker = MarathonLatentWorker('bot', 'tcp://marathon.local/', 'foo',
worker = MarathonLatentWorker('bot', 'tcp://marathon.local', 'foo',
'bar', 'debian:wheezy')
# class instanciation configures nothing
self.assertEqual(worker._http, None)

def makeWorker(self, **kwargs):
kwargs.setdefault('image', 'debian:wheezy')
worker = MarathonLatentWorker('bot', 'tcp://marathon.local/', **kwargs)
worker = MarathonLatentWorker('bot', 'tcp://marathon.local', **kwargs)
self.worker = worker
master = fakemaster.make_master(testcase=self, wantData=True)
self._http = self.successResultOf(
fakehttpclientservice.HTTPClientService.getFakeService(
master, self, 'tcp://marathon.local/', auth=kwargs.get(
master, self, 'tcp://marathon.local', auth=kwargs.get(
'auth')))
worker.setServiceParent(master)
worker.reactor = self.reactor
Expand Down

0 comments on commit 4550c33

Please sign in to comment.