fixed skiplist unit test, broken since f8646705e
authorForrest Voight <forrest@forre.st>
Wed, 8 Feb 2012 19:00:13 +0000 (14:00 -0500)
committerForrest Voight <forrest@forre.st>
Wed, 8 Feb 2012 19:00:13 +0000 (14:00 -0500)
p2pool/test/test_skiplists.py

index 835899c..06d14ef 100644 (file)
@@ -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]