Several tweaks to the testing clock. #3
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
of 'util' we missed having the TestAll function.
infrastructure that it needed to read all Debug level log messages.
This is because many tests use WaitAdvance(..., LongWait), which
means that if they aren't ready immediately, then they way 1s before
checking again, which is way too long. Instead we cap out at 10ms, so
we don't spin waiting for the right number of waiters, but we also
don't wait too long. We still stop at the same time, and we still
stop as soon as we have the expected number of waiters.
possible to know who has actually called clock.After() and co, so
you can figure out why there are a particular number of Waiters, and
whether that is the correct number or not.
Nothing about the interface to the testing clock changes with this, it is just hopefully slightly nicer to debug issues when using the testing clock.