We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1e98823 commit ed2781bCopy full SHA for ed2781b
pkg/skaffold/util/time/time_test.go
@@ -63,6 +63,10 @@ func TestHumanize(t *testing.T) {
63
if err != nil {
64
t.Errorf("%s", err)
65
}
66
+ duration3, err := time.ParseDuration("1h3m0.5s")
67
+ if err != nil {
68
+ t.Errorf("%s", err)
69
+ }
70
tests := []struct {
71
description string
72
value time.Duration
@@ -78,6 +82,11 @@ func TestHumanize(t *testing.T) {
78
82
value: duration2,
79
83
expected: "5.234 seconds",
80
84
},
85
+ {
86
+ description: "Case for 1h3m0.5s (plural for fraction of second)",
87
+ value: duration3,
88
+ expected: "1 hour 3 minutes 0.5 seconds",
89
+ },
81
90
91
for _, test := range tests {
92
testutil.Run(t, test.description, func(t *testutil.T) {
0 commit comments