X-Git-Url: http://git.cascardo.info/?p=cascardo%2Fipsilon.git;a=blobdiff_plain;f=tests%2Fpgdb.py;h=ae4b47c260499c3f83a760fc427a24dbd232b957;hp=a738052225fe1f9569d06d965b7d9dc6a5cefb2b;hb=800b39df6e2c65fa06a0d5da48002bb26b83b435;hpb=f73332fb7d55bd5753a8bafc2493172203fcf377 diff --git a/tests/pgdb.py b/tests/pgdb.py index a738052..ae4b47c 100755 --- a/tests/pgdb.py +++ b/tests/pgdb.py @@ -136,7 +136,13 @@ if __name__ == '__main__': sess.add_server(spname, 'http://127.0.0.11:45081') print "test1: Authenticate to IDP ...", + sys.stdout.flush() try: + print 'Stress-testing the database connections...', + sys.stdout.flush() + for i in xrange(50): + sess.auth_to_idp(idpname) + sess.logout_from_idp(idpname) sess.auth_to_idp(idpname) except Exception, e: # pylint: disable=broad-except print >> sys.stderr, " ERROR: %s" % repr(e)