git://git.novaco.in
/
p2pool.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
40b8e6f
)
made test_node find an available port to listen to instead of using a fixed one
author
Forrest Voight
<forrest@forre.st>
Wed, 31 Oct 2012 21:31:08 +0000 (17:31 -0400)
committer
Forrest Voight
<forrest@forre.st>
Wed, 31 Oct 2012 21:31:08 +0000 (17:31 -0400)
p2pool/test/test_node.py
patch
|
blob
|
history
diff --git
a/p2pool/test/test_node.py
b/p2pool/test/test_node.py
index
f262c32
..
0fa594f
100644
(file)
--- a/
p2pool/test/test_node.py
+++ b/
p2pool/test/test_node.py
@@
-60,9
+60,9
@@
class Test(unittest.TestCase):
wb = work.WorkerBridge(node=n, my_pubkey_hash=42, donation_percentage=2, merged_urls=[], worker_fee=3)
web_root = resource.Resource()
worker_interface.WorkerInterface(wb).attach_to(web_root)
- port = reactor.listenTCP(8080, server.Site(web_root))
+ port = reactor.listenTCP(0, server.Site(web_root))
- proxy = jsonrpc.Proxy('http://127.0.0.1:8080')
+ proxy = jsonrpc.Proxy('http://127.0.0.1:' + str(port.getHost().port))
yield deferral.sleep(3)