From 5108f6b6bff3096b5b0925db4b643f9e8368ddcd Mon Sep 17 00:00:00 2001 From: burris Date: Sun, 15 Sep 2002 19:35:56 +0000 Subject: [PATCH] bug fix in store value update testing --- khashmir.py | 2 +- test.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/khashmir.py b/khashmir.py index 104c9e9..1722ad4 100644 --- a/khashmir.py +++ b/khashmir.py @@ -126,7 +126,7 @@ class Khashmir(xmlrpc.XMLRPC): def default(err, node=node, table=table): table.nodeFailed(node) df = node.storeValue(key, value, self.node.senderDict()) - df.addCallbacks(cb, default) + df.addCallback(cb) # this call is asynch self.findNode(key, _storeValueForKey) diff --git a/test.py b/test.py index f8ba5c0..2dc44dd 100644 --- a/test.py +++ b/test.py @@ -3,7 +3,7 @@ import unittest import ktable, khashmir import hash, node, knode import actions, xmlrpcclient -import bencode, btemplate +import btemplate -tests = unittest.defaultTestLoader.loadTestsFromNames(['hash', 'node', 'knode', 'bencode', 'btemplate', 'actions', 'ktable', 'xmlrpcclient']) +tests = unittest.defaultTestLoader.loadTestsFromNames(['hash', 'node', 'knode', 'btemplate', 'actions', 'ktable', 'xmlrpcclient']) result = unittest.TextTestRunner().run(tests) -- 2.39.5