diff rhodecode/tests/test_hg_operations.py @ 1715:e1e482093077 beta

tests for changeset comments
author Marcin Kuzminski <marcin@python-works.com>
date Wed, 23 Nov 2011 22:26:54 +0200
parents 089ef495e9dd
children 89efedac4e6c
line wrap: on
line diff
--- a/rhodecode/tests/test_hg_operations.py	Wed Nov 23 16:37:50 2011 +0200
+++ b/rhodecode/tests/test_hg_operations.py	Wed Nov 23 22:26:54 2011 +0200
@@ -184,7 +184,6 @@
     if anonymous_access:
         print '\tenabled, disabling it '
         set_anonymous_access(enable=False)
-        time.sleep(1)
 
     clone_url = 'http://%(user)s:%(pass)s@%(host)s/%(cloned_repo)s %(dest)s' % \
                   {'user':USER,
@@ -217,7 +216,6 @@
     if not anonymous_access:
         print '\tnot enabled, enabling it '
         set_anonymous_access(enable=True)
-        time.sleep(1)
 
     clone_url = 'http://%(host)s/%(cloned_repo)s %(dest)s' % \
                   {'user':USER,
@@ -386,7 +384,7 @@
 
     initial_logs = get_logs()
     print 'initial activity logs: %s' % len(initial_logs)
-
+    s = time.time()
     #test_push_modify_file()
     test_clone_with_credentials()
     test_clone_wrong_credentials()
@@ -399,3 +397,4 @@
     test_push_wrong_credentials()
 
     test_logs(initial_logs)
+    print 'finished ok in %.3f' % (time.time() - s)