[Zodb-checkins] CVS: StandaloneZODB/ZEO/tests - testZEO.py:1.21.2.2

Jeremy Hylton jeremy@zope.com
Tue, 26 Mar 2002 00:52:07 -0500


Update of /cvs-repository/StandaloneZODB/ZEO/tests
In directory cvs.zope.org:/tmp/cvs-serv21048

Modified Files:
      Tag: zeo-1_0-debug-branch
	testZEO.py 
Log Message:
Fix bogus get_timestamp() method.  Return `t` not 't'!!!

Add a couple of calls to status() to make sure it works.


=== StandaloneZODB/ZEO/tests/testZEO.py 1.21.2.1 => 1.21.2.2 ===
         """Try to cause the tests to halt"""
         self.running = 0
+        self._storage.status()
         self._storage.close()
         self._server.close()
         os.waitpid(self._pid, 0)
@@ -214,6 +215,7 @@
         oid = self._storage.new_oid()
         self._storage.store(oid, None, '', '', t)
         self._storage.tpc_vote(t)
+        self._storage.status()
         self._storage.tpc_finish(t)
 
         for store, trans in self._storages:
@@ -233,7 +235,7 @@
     def _get_timestamp(self):
         t = time.time()
         t = apply(TimeStamp,(time.gmtime(t)[:5]+(t%60,)))
-        return 't'
+        return `t`
 
 class ZEOFileStorageTests(GenericTests):
     __super_setUp = GenericTests.setUp