Skip to content

Commit

Permalink
Fix test failure due to days-in-month check. Issue kubernetes#17998.
Browse files Browse the repository at this point in the history
  • Loading branch information
fabioy committed Dec 1, 2015
1 parent 8752165 commit 3d75105
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion pkg/kubectl/resource_printer_test.go
Original file line number Diff line number Diff line change
@@ -1217,7 +1217,6 @@ func TestTranslateTimestamp(t *testing.T) {
{"5 minutes ago", translateTimestamp(unversioned.Time{Time: time.Now().Add(-3e11)}), "5m"},
{"an hour ago", translateTimestamp(unversioned.Time{Time: time.Now().Add(-6e12)}), "1h"},
{"2 days ago", translateTimestamp(unversioned.Time{Time: time.Now().AddDate(0, 0, -2)}), "2d"},
{"months ago", translateTimestamp(unversioned.Time{Time: time.Now().AddDate(0, -3, 0)}), "92d"},
{"10 years ago", translateTimestamp(unversioned.Time{Time: time.Now().AddDate(-10, 0, 0)}), "10y"},
}
for _, test := range tl {

0 comments on commit 3d75105

Please sign in to comment.