From efeea5e5e7f7c9714f512dc3a56545c57329596f Mon Sep 17 00:00:00 2001 From: Brian Warner Date: Thu, 30 Nov 2006 15:55:26 -0700 Subject: [PATCH] add test infrastructure, use 'make test' to run it, please run before pushing --- .darcs-boringfile | 1 + allmydata/client.py | 3 ++- allmydata/queen.py | 5 +++-- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/.darcs-boringfile b/.darcs-boringfile index 8b74fde3..58044258 100644 --- a/.darcs-boringfile +++ b/.darcs-boringfile @@ -36,3 +36,4 @@ ^client-basedir($|/) ^queen-basedir($|/) +^_trial_temp($|/) diff --git a/allmydata/client.py b/allmydata/client.py index 12eb84c6..d410dd9f 100644 --- a/allmydata/client.py +++ b/allmydata/client.py @@ -35,7 +35,8 @@ class Client(service.MultiService): log.msg("no queen_pburl, cannot connect") def stopService(self): - self.connector.stopConnecting() + if self.queen_pburl: + self.connector.stopConnecting() def _got_queen(self, queen): log.msg("connected to queen") diff --git a/allmydata/queen.py b/allmydata/queen.py index 338af2ca..ca667178 100644 --- a/allmydata/queen.py +++ b/allmydata/queen.py @@ -22,8 +22,9 @@ class Queen(service.MultiService): self.urls = {} r = Roster() r.setServiceParent(self) - self.urls["roster"] = self.tub.registerReference(r, "roster") + #self.urls["roster"] = self.tub.registerReference(r, "roster") def startService(self): service.MultiService.startService(self) - log.msg("queen running, roster is at %s" % self.urls["roster"]) + log.msg("queen running") + #log.msg(" roster is at %s" % self.urls["roster"]) -- 2.45.2