Fix race in crunchstat.
authorTom Clegg <tom@curoverse.com>
Thu, 4 Aug 2016 21:45:10 +0000 (17:45 -0400)
committerTom Clegg <tom@curoverse.com>
Thu, 4 Aug 2016 21:45:24 +0000 (17:45 -0400)
commitddb96e86a98113ea313dd01e8b7957f07345b6a7
tree30e636dd6ef1d733f890857355dcff10090e2fb0
parent13c821b6dd20ed658db9c6c3db0b8d10d9175fbb
Fix race in crunchstat.

To fulfill the "nothing more will be logged after Stop() returns"
guarantee, Stop() needs to wait for run() to finish.

Should fix https://ci.curoverse.com/job/run-tests-remainder/38/consoleText

No issue #
lib/crunchstat/crunchstat.go