[Buildbot-devel] trivial fix

Dustin J. Mitchell dustin at zmanda.com
Mon Jul 30 23:28:32 UTC 2007


The maildir test isn't passing -- on the off chance that this "works" in
some versions of Python and not in others, here's the fix:

Index: concurrency/buildbot/test/test_maildir.py
===================================================================
--- concurrency.orig/buildbot/test/test_maildir.py	2007-01-23 15:04:32.000000000 -0600
+++ concurrency/buildbot/test/test_maildir.py	2007-07-30 18:20:45.482655352 -0500
@@ -64,7 +64,7 @@
                               os.path.join(testfiles_dir, msg))
         self.loop = task.LoopingCall(self.poll, self.changes, count, d)
         self.loop.start(0.1)
-        t = reactor.callLater(self.SECONDS_PER_MESSAGE*i + 15,
+        t = reactor.callLater(self.SECONDS_PER_MESSAGE*count + 15,
                               d.errback, TimeOutError)
         # TODO: verify the messages, should use code from test_mailparse but
         # I'm not sure how to factor the verification routines out in a

Dustin

-- 
        Dustin J. Mitchell
        Storage Software Engineer, Zmanda, Inc.
        http://www.zmanda.com/




More information about the devel mailing list