Skip to content

Commit

Permalink
Fix test test_ray_debugger failure on macOS (#48527)
Browse files Browse the repository at this point in the history
Fixes a race condition on macOS
  • Loading branch information
pcmoritz authored Nov 4, 2024
1 parent 3581e62 commit c1b2282
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions python/ray/tests/test_ray_debugger.py
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,15 @@ def fact(n):

result = fact.remote(5)

wait_for_condition(
lambda: len(
ray.experimental.internal_kv._internal_kv_list(
"RAY_PDB_", namespace=ray_constants.KV_NAMESPACE_PDB
)
)
> 0
)

p = pexpect.spawn("ray debug")
p.expect("Enter breakpoint index or press enter to refresh: ")
p.sendline("0")
Expand Down

0 comments on commit c1b2282

Please sign in to comment.