/[storm]/storm/org/nongnu/storm/http/client/testSimpleHTTPClient.test
ViewVC logotype

Diff of /storm/org/nongnu/storm/http/client/testSimpleHTTPClient.test

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.5 by hemppah, Mon Apr 28 11:05:01 2003 UTC revision 1.6 by hemppah, Mon Apr 28 13:21:39 2003 UTC
# Line 58  def testHTTPClient(): Line 58  def testHTTPClient():
58                    
59                    
60           # Start HTTP-proxy thread           # Start HTTP-proxy thread
61           serverthread = java.lang.Thread(HTTPProxy(pool, 5555))           proxy = HTTPProxy(pool, 5555)
62             serverthread = java.lang.Thread(proxy, "HTTP_PROXY")
63           serverthread.start()           serverthread.start()
64           print "HTTP proxy thread started..."           print "HTTP proxy thread started..."
65                    
# Line 80  def testHTTPClient(): Line 81  def testHTTPClient():
81           assert resp.status == 200           assert resp.status == 200
82                                        
83           httpconn.close             httpconn.close  
84           java.lang.Thread(serverthread).interrupt()            
85           print "HTTP proxy thread stopped..."               if  serverthread.isAlive() == 1:
86                    print serverthread.isAlive()
87                    serverthread.interrupt()
88                    print "HTTP proxy thread stopped..."

Legend:
Removed from v.1.5  
changed lines
  Added in v.1.6

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26