
The canStop method gets called every second in a seperate thread until the test can be stopped. Replacing it with blockUntilEnded forwards the responsibility to stop to the test itself which has better control over the stop condition. ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=163343824