proc/test: improve TestStepParked
It was possible for TestStepParked to pick a runtime goroutine and attempt to step it. Nothing guarantees that a goroutine other than the ones we are using to run the code would actually ever resume before the end of the program. This makes the test more discerning in its choice of goroutines.
Showing
想要评论请 注册 或 登录