git://git.novaco.in
/
p2pool.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
99a52d6
)
fixed skiplist unit test, broken since f8646705e
author
Forrest Voight
<forrest@forre.st>
Wed, 8 Feb 2012 19:00:13 +0000 (14:00 -0500)
committer
Forrest Voight
<forrest@forre.st>
Wed, 8 Feb 2012 19:00:13 +0000 (14:00 -0500)
p2pool/test/test_skiplists.py
patch
|
blob
|
history
diff --git
a/p2pool/test/test_skiplists.py
b/p2pool/test/test_skiplists.py
index
835899c
..
06d14ef
100644
(file)
--- a/
p2pool/test/test_skiplists.py
+++ b/
p2pool/test/test_skiplists.py
@@
-10,7
+10,7
@@
class Test(unittest.TestCase):
t = forest.Tracker()
d = skiplists.WeightsSkipList(t)
for i in xrange(200):
- t.add(test_forest.FakeShare(hash=i, previous_hash=i - 1 if i > 0 else None, new_script=i, donation=1234, target=2**249))
+ t.add(test_forest.FakeShare(hash=i, previous_hash=i - 1 if i > 0 else None, share_data=dict(new_script=i, donation=1234), target=2**249))
for i in xrange(200):
a = random.randrange(200)
d(a, random.randrange(a + 1), 1000000*65535)[1]