Skip to content

Conversation

@dverbeir
Copy link

main() must wait for the goroutine that eventually prints the test result before exiting. Without this, a test executed with --silent sometimes doesn't show any output.

Measurements are read from a channel and, in silent mode, the
only output is printed after all measurements have been read.
That is when the channel provided to fast.Measure() has been
closed at the end of fast.Measure() and drained by the
goroutine reading from the measurements.

main() must wait for that goroutine that eventually prints the
test result before exiting.

Signed-off-by: David Verbeiren <david.verbeiren@tessares.net>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant