Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
K
k3s
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jacklull
k3s
Commits
a581f041
Commit
a581f041
authored
Dec 15, 2015
by
k8s-merge-robot
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #18332 from hurf/fix_time_test
Auto commit by PR queue bot
parents
430be9ff
fb6ea438
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
0 deletions
+1
-0
resource_printer_test.go
pkg/kubectl/resource_printer_test.go
+1
-0
No files found.
pkg/kubectl/resource_printer_test.go
View file @
a581f041
...
@@ -1217,6 +1217,7 @@ func TestTranslateTimestamp(t *testing.T) {
...
@@ -1217,6 +1217,7 @@ func TestTranslateTimestamp(t *testing.T) {
{
"5 minutes ago"
,
translateTimestamp
(
unversioned
.
Time
{
Time
:
time
.
Now
()
.
Add
(
-
3e11
)}),
"5m"
},
{
"5 minutes ago"
,
translateTimestamp
(
unversioned
.
Time
{
Time
:
time
.
Now
()
.
Add
(
-
3e11
)}),
"5m"
},
{
"an hour ago"
,
translateTimestamp
(
unversioned
.
Time
{
Time
:
time
.
Now
()
.
Add
(
-
6e12
)}),
"1h"
},
{
"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"
},
{
"2 days ago"
,
translateTimestamp
(
unversioned
.
Time
{
Time
:
time
.
Now
()
.
AddDate
(
0
,
0
,
-
2
)}),
"2d"
},
{
"months ago"
,
translateTimestamp
(
unversioned
.
Time
{
Time
:
time
.
Now
()
.
AddDate
(
0
,
0
,
-
90
)}),
"90d"
},
{
"10 years ago"
,
translateTimestamp
(
unversioned
.
Time
{
Time
:
time
.
Now
()
.
AddDate
(
-
10
,
0
,
0
)}),
"10y"
},
{
"10 years ago"
,
translateTimestamp
(
unversioned
.
Time
{
Time
:
time
.
Now
()
.
AddDate
(
-
10
,
0
,
0
)}),
"10y"
},
}
}
for
_
,
test
:=
range
tl
{
for
_
,
test
:=
range
tl
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment