diff options
Diffstat (limited to 'test/perf/poolload.py')
-rw-r--r-- | test/perf/poolload.py | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/test/perf/poolload.py b/test/perf/poolload.py index 1a2ff6978..8d66da84f 100644 --- a/test/perf/poolload.py +++ b/test/perf/poolload.py @@ -1,11 +1,11 @@ # load test of connection pool - -import testbase +import testenv; testenv.configure_for_tests() +import thread, time from sqlalchemy import * import sqlalchemy.pool as pool -import thread,time +from testlib import testing -db = create_engine(testbase.db.url, pool_timeout=30, echo_pool=True) +db = create_engine(testing.db.url, pool_timeout=30, echo_pool=True) metadata = MetaData(db) users_table = Table('users', metadata, @@ -30,8 +30,8 @@ def runfast(): # time.sleep(.005) # result.close() print "runfast cycle complete" - -#thread.start_new_thread(runslow, ()) + +#thread.start_new_thread(runslow, ()) for x in xrange(0,50): thread.start_new_thread(runfast, ()) |