Skip to content

Commit

Permalink
Code review fix. Set self.delay_count=2
Browse files Browse the repository at this point in the history
  • Loading branch information
ganeshmurthy committed Mar 5, 2025
1 parent 5d6d837 commit 6c5f669
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions tests/system_tests_interior_sync_up.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ def __init__(self, host_a, host_b, inter_router_port):
self.poll_timer = None
self.delay_timer = None
self.count = 1000
self.delay_count = 12 # This should be larger than MAX_KEPT_DELTAS in mobile.py
self.delay_count = 2 # This should be larger than MAX_KEPT_DELTAS in mobile.py
self.inter_router_port = inter_router_port

self.receivers = []
Expand Down Expand Up @@ -218,11 +218,9 @@ def on_message(self, event):

self.last_action = "Got a query response with %d of the expected addresses" % (got_count)

print(f"got_count={got_count}, self.count={self.count}")
if got_count == self.count:
self.fail(None)
else:
print(f"self.num_attempts={self.num_attempts}, self.max_attempts={self.max_attempts}")
if self.num_attempts < self.max_attempts:
self.poll_timer = self.reactor.schedule(5, PollTimeout(self))
self.num_attempts += 1
Expand Down

0 comments on commit 6c5f669

Please sign in to comment.