ruby / debug

Debugging functionality for Ruby
BSD 2-Clause "Simplified" License
1.1k stars 125 forks source link

Fix flakey test "test_reponse_returns_correct_threads_info" #1089

Closed ono-max closed 3 months ago

ono-max commented 3 months ago

Sometimes, the "test_response_returns_correct_threads_info" test failed with the following issue:

https://github.com/ruby/debug/actions/runs/7971483036/job/21761265508#step:4:24 https://github.com/ruby/debug/actions/runs/7971521581/job/21761395380#step:4:24

The program did not pause at the breakpoint when the assert_threads_result method was called. Therefore, it's necessary to ensure that the program pauses after the "req_continue" method is invoked. This PR addresses and resolves the issue.

The above things are reported by @ko1-san. I appreciate for his help.