Skip to content

Fix the api/client/ps unit tests. - #18820

Merged
thaJeztah merged 1 commit into
moby:masterfrom
vdemeester:oups-fix-api-ps-unit-tests
Dec 21, 2015
Merged

thaJeztah merged 1 commit into
moby:masterfrom
vdemeester:oups-fix-api-ps-unit-tests

Conversation

@vdemeester

Copy link
Copy Markdown
Member

TestFormat was depending on the time so 😱 (comparing again 1970-01-01).. at some point it was bounded to fail >_<. Updating it to be not time-dependent :). Fixing my own mistakes 🐷.

🐸

PS: all unit tests breaks on all build from now on until this fixes it 😅.

Signed-off-by: Vincent Demeester [email protected]

@boaz0

boaz0 commented Dec 21, 2015

Copy link
Copy Markdown
Contributor

LGTM 👍

Comment thread api/client/ps/formatter_test.go Outdated

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Is this going to be flaky (23 hours <--> 24 hours?). Would it be more stable to use 36 hours in the past, so that it would output e.g. 1 day ago

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

(not sure, just wondering)

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

make sense

TestFormat was depending on the time so (comparing again
1970-01-01).. at some point it was bounded to fail >_<. Updating it to
be *not* time-dependent :).

Signed-off-by: Vincent Demeester <[email protected]>
@vdemeester
vdemeester force-pushed the oups-fix-api-ps-unit-tests branch from 8fa156d to bb85313 Compare December 21, 2015 10:07
@runcom

runcom commented Dec 21, 2015

Copy link
Copy Markdown
Member

LGTM

@thaJeztah

Copy link
Copy Markdown
Member

LGTM (if tests are green 😄)

Thanks @vdemeester!

@thaJeztah

Copy link
Copy Markdown
Member

Windows failed, but looks to be a flaky test: #18613 (see #18613 (comment))

@thaJeztah

Copy link
Copy Markdown
Member

Merging as the failure should not be related

thaJeztah added a commit that referenced this pull request Dec 21, 2015
@thaJeztah
thaJeztah merged commit 67620bc into moby:master Dec 21, 2015
@vdemeester
vdemeester deleted the oups-fix-api-ps-unit-tests branch December 21, 2015 13:06
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