d = self.client.findHash(idx_path)
d.addCallback(self.verifyHash, idx_path, idx_hash)
- d.addCallback(lastDefer.callback)
+ d.addBoth(lastDefer.callback)
return lastDefer
def test_findPkgHash(self):
d = self.client.findHash(pkg_path)
d.addCallback(self.verifyHash, pkg_path, pkg_hash)
- d.addCallback(lastDefer.callback)
+ d.addBoth(lastDefer.callback)
return lastDefer
def test_findSrcHash(self):
d = self.client.findHash(src_dir + '/' + src_paths[i])
d.addCallback(self.verifyHash, src_dir + '/' + src_paths[i], src_hashes[i])
- d.addCallback(lastDefer.callback)
+ d.addBoth(lastDefer.callback)
return lastDefer
def test_multipleFindHash(self):
d = self.client.findHash(idx_path)
d.addCallback(self.verifyHash, idx_path, idx_hash)
- d.addCallback(lastDefer.callback)
+ d.addBoth(lastDefer.callback)
return lastDefer
def tearDown(self):
d = self.client.get(path)
d.addCallback(self.gotResp, num, expect)
if last:
- d.addCallback(lastDefer.callback)
+ d.addBoth(lastDefer.callback)
newRequest("/", 1, 3433)
newRequest("/blog/", 2, 37121)
d = self.client.get(path)
d.addCallback(self.gotResp, num, expect)
if last:
- d.addCallback(lastDefer.callback)
+ d.addBoth(lastDefer.callback)
newRequest("/", 1, 3433)
newRequest("/blog/", 2, 37121)
d = self.client.findHash(idx_path)
d.addCallback(self.verifyHash, idx_path, idx_hash)
- d.addCallback(lastDefer.callback)
+ d.addBoth(lastDefer.callback)
return lastDefer
def tearDown(self):
d = self.manager.get([(host, 80, path)])
d.addCallback(self.gotResp, num, expect)
if last:
- d.addCallback(lastDefer.callback)
+ d.addBoth(lastDefer.callback)
newRequest('www.camrdale.org', "/", 1, 3433)
newRequest('www.camrdale.org', "/blog/", 2, 37121)