Skip to content

Commit

Permalink
Fix test test_ray_debugger failure on macOS (ray-project#48527)
Browse files Browse the repository at this point in the history
Fixes a race condition on macOS

Signed-off-by: mohitjain2504 <mohit.jain@dream11.com>
  • Loading branch information
pcmoritz authored and mohitjain2504 committed Nov 15, 2024
1 parent 1fff3eb commit e838fe0
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 e838fe0

Please sign in to comment.