Author: remi
Date: 2008-12-13 15:32:15 +0100 (Sat, 13 Dec 2008)
New Revision: 3080

Modified:
   
software_suite_v2/tuxware/pytuxisalive/branches/complete_refactoring/src/tuxisalive/lib/IPN/IPNStressTest.py
Log:
* moved the test function

Modified: 
software_suite_v2/tuxware/pytuxisalive/branches/complete_refactoring/src/tuxisalive/lib/IPN/IPNStressTest.py
===================================================================
--- 
software_suite_v2/tuxware/pytuxisalive/branches/complete_refactoring/src/tuxisalive/lib/IPN/IPNStressTest.py
        2008-12-13 14:30:43 UTC (rev 3079)
+++ 
software_suite_v2/tuxware/pytuxisalive/branches/complete_refactoring/src/tuxisalive/lib/IPN/IPNStressTest.py
        2008-12-13 14:32:15 UTC (rev 3080)
@@ -84,9 +84,11 @@
         print "Client can't be connected"
 
 # 
------------------------------------------------------------------------------
-# Main
+# Test the IPN module.
 # 
------------------------------------------------------------------------------
-if __name__ == '__main__':
+def test():
+    """Test the IPN module.
+    """
     # Create a IPN server
     t = threading.Thread(target = serverProcess, args = (15.0,))
     t.start()
@@ -95,3 +97,10 @@
         t = threading.Thread(target = clientProcess, args = (5.0,))
         t.start()
         time.sleep(0.02)
+    time.sleep(14.0)
+
+# 
------------------------------------------------------------------------------
+# Main
+# 
------------------------------------------------------------------------------
+if __name__ == '__main__':
+    test()


------------------------------------------------------------------------------
SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada.
The future of the web can't happen without you.  Join us at MIX09 to help
pave the way to the Next Web now. Learn more and register at
http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/
_______________________________________________
Tux-droid-svn mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tux-droid-svn

Reply via email to