Changeset 2481290 in trunk
- Timestamp:
- 2012-03-31T00:29:06Z (13 years ago)
- Branches:
- master
- Children:
- 14a50f2
- Parents:
- c5e10e2
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified src/allmydata/test/test_introducer.py ¶
rc5e10e2 r2481290 388 388 subscribing_clients = [] 389 389 publishing_clients = [] 390 self.the_introducer = introducer 390 391 privkeys = {} 391 392 expected_announcements = [0 for c in range(NUM_CLIENTS)] … … 484 485 if c._debug_outstanding: 485 486 return False 486 if introducer._debug_outstanding:487 if self.the_introducer._debug_outstanding: 487 488 return False 488 489 return True … … 496 497 def _check1(res): 497 498 log.msg("doing _check1") 498 dc = introducer._debug_counts499 dc = self.the_introducer._debug_counts 499 500 if server_version == V1: 500 501 # each storage server publishes a record, and (after its … … 595 596 for k in c._debug_counts: 596 597 c._debug_counts[k] = 0 597 for k in introducer._debug_counts:598 introducer._debug_counts[k] = 0598 for k in self.the_introducer._debug_counts: 599 self.the_introducer._debug_counts[k] = 0 599 600 expected_announcements[i] += 1 # new 'storage' for everyone 600 601 self.create_tub(self.central_portnum) 601 newfurl = self.central_tub.registerReference( introducer,602 newfurl = self.central_tub.registerReference(self.the_introducer, 602 603 furlFile=iff) 603 604 assert newfurl == self.introducer_furl … … 615 616 # assert that the introducer sent out new messages, one per 616 617 # subscriber 617 dc = introducer._debug_counts618 dc = self.the_introducer._debug_counts 618 619 self.failUnlessEqual(dc["outbound_announcements"], 619 620 NUM_STORAGE*NUM_CLIENTS) … … 653 654 else: 654 655 introducer = IntroducerService() 655 newfurl = self.central_tub.registerReference(introducer, 656 self.the_introducer = introducer 657 newfurl = self.central_tub.registerReference(self.the_introducer, 656 658 furlFile=iff) 657 659 assert newfurl == self.introducer_furl … … 664 666 def _check3(res): 665 667 log.msg("doing _check3") 666 dc = introducer._debug_counts668 dc = self.the_introducer._debug_counts 667 669 self.failUnlessEqual(dc["outbound_announcements"], 668 670 NUM_STORAGE*NUM_CLIENTS)
Note: See TracChangeset
for help on using the changeset viewer.