[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[minion-cvs] Fix bug noticed by Marco -- tm versus time.time()



Update of /home/minion/cvsroot/src/minion/lib/mixminion
In directory moria.mit.edu:/tmp/cvs-serv25171/lib/mixminion

Modified Files:
	test.py 
Log Message:
Fix bug noticed by Marco -- tm versus time.time()

Index: test.py
===================================================================
RCS file: /home/minion/cvsroot/src/minion/lib/mixminion/test.py,v
retrieving revision 1.123
retrieving revision 1.124
diff -u -d -r1.123 -r1.124
--- test.py	21 Jun 2003 21:47:50 -0000	1.123
+++ test.py	26 Jun 2003 03:19:29 -0000	1.124
@@ -5057,12 +5057,11 @@
         self.assertEquals(s.firstEventTime(), tm+1.5)
         s.processEvents(tm+1.5)
         self.assertEquals(["c"], lst)
-        diff = abs(s.firstEventTime()-(time.time()+1))
+        diff = abs(s.firstEventTime()-(tm+1))
         self.assert_(diff < 0.01)
 
         s.processEvents(tm+5)
         self.assertEquals(["c", "c", "d", "b"], lst)
-
 
     def testMixPool(self):
         ServerConfig = mixminion.server.ServerConfig.ServerConfig