]> git.mxchange.org Git - quix0rs-apt-p2p.git/blobdiff - ktable.py
fix bug in pong handler
[quix0rs-apt-p2p.git] / ktable.py
index 3bff4074ff75a1fcf5be33fe3f6d6bad6ef67e3b..b47416ccf0243656b8d685def7ae1e5fbeda1dac 100644 (file)
--- a/ktable.py
+++ b/ktable.py
@@ -219,11 +219,11 @@ import unittest
 
 class TestKTable(unittest.TestCase):
     def setUp(self):
-       self.a = Node(hash.newID(), 'localhost', 2002)
+       self.a = Node().init(hash.newID(), 'localhost', 2002)
        self.t = KTable(self.a)
 
     def test_replace_stale_node(self):
-       self.b = Node(hash.newID(), 'localhost', 2003)
+       self.b = Node().init(hash.newID(), 'localhost', 2003)
        self.t.replaceStaleNode(self.a, self.b)
        assert(len(self.t.buckets[0].l) == 1)
        assert(self.t.buckets[0].l[0].id == self.b.id)