docker images
friendly duration gets unfriendly after a while
fix #12852 Signed-off-by: Daniel Zhang <jmzwcn@gmail.com>
This commit is contained in:
parent
861cba008d
commit
7a9788fb68
2 changed files with 4 additions and 3 deletions
|
@ -41,6 +41,6 @@ func TestHumanDuration(t *testing.T) {
|
|||
assertEquals(t, "13 months", HumanDuration(13*month))
|
||||
assertEquals(t, "23 months", HumanDuration(23*month))
|
||||
assertEquals(t, "24 months", HumanDuration(24*month))
|
||||
assertEquals(t, "2.010959 years", HumanDuration(24*month+2*week))
|
||||
assertEquals(t, "3.164384 years", HumanDuration(3*year+2*month))
|
||||
assertEquals(t, "2 years", HumanDuration(24*month+2*week))
|
||||
assertEquals(t, "3 years", HumanDuration(3*year+2*month))
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue