Skip to content

Commit

Permalink
Fix ut.
Browse files Browse the repository at this point in the history
  • Loading branch information
zhouaihui committed Jan 9, 2024
1 parent f160c31 commit 0cd65b0
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions fed/tests/test_exit_on_failure_sending.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@ def get_value(self):
def run(party: str, q: multiprocessing.Queue):
compatible_utils.init_ray(address='local')
addresses = {
'alice': '127.0.0.1:11012',
'bob': '127.0.0.1:11011',
'alice': '127.0.0.1:21321',
'bob': '127.0.0.1:21322',
}
retry_policy = {
"maxAttempts": 2,
Expand Down Expand Up @@ -68,12 +68,6 @@ def failure_handler(error):
o = f.party("alice").remote()
My.party("bob").remote(o)

import time

# Wait a long time.
# If the test takes effect, the main loop here will be broken.
time.sleep(86400)


def test_exit_when_failure_on_sending():
q = multiprocessing.Queue()
Expand Down

0 comments on commit 0cd65b0

Please sign in to comment.