moby/pkg/streamformatter
Yong Tang d17bb23ae6 Fix flaky test TestJSONFormatProgress (#21124)
In TestJSONFormatProgress, the progress string was used for comparison.
However, the progress string (progress.String()) uses time.Now().UTC()
to generate the timeLeftBox which is not a fixed value and cannot be
compared reliably.

This PR fixes the issue by stripping the timeLeftBox field before doing
the comparison.

This PR fixes #21124.

Signed-off-by: Yong Tang <yong.tang.github@outlook.com>
2016-03-14 16:00:12 +00:00
..
streamformatter.go Send push information to trust code out-of-band 2016-01-08 10:57:50 -08:00
streamformatter_test.go Fix flaky test TestJSONFormatProgress (#21124) 2016-03-14 16:00:12 +00:00