Skip to content

Make TestLogsAPIUntil less flaky#35771

Merged
yongtang merged 1 commit intomoby:masterfrom
thaJeztah:fix-flaky-testloTestLogsAPIUntil
Dec 12, 2017
Merged

Make TestLogsAPIUntil less flaky#35771
yongtang merged 1 commit intomoby:masterfrom
thaJeztah:fix-flaky-testloTestLogsAPIUntil

Conversation

@thaJeztah
Copy link
Member

Commit ee594dc (#35745) removed the sleep 0.5 from this test, because sleep has a full-second precision. However, in some cases, all three log-entries are output at the same time, causing the --until filter to fail.

This patch adds back a sleep, but uses 1 second instead.

ping @cpuguy83 @dnephin @vdemeester PTAL

Commit ee594dc removed the
`sleep 0.5` from this test, because sleep has a full-second
precision. However, in some cases, all three log-entries
are output at the same time, causing the `--until` filter
to fail.

This patch adds back a `sleep`, but uses 1 second instead.

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
Copy link
Member

@vdemeester vdemeester left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 🐸

Copy link
Member

@cpuguy83 cpuguy83 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🤦‍♂️ LGTM

Copy link
Member

@yongtang yongtang left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@yongtang yongtang merged commit 1082aa7 into moby:master Dec 12, 2017
@thaJeztah thaJeztah deleted the fix-flaky-testloTestLogsAPIUntil branch December 12, 2017 17:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants