We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f5a4cce commit 4cac3c3Copy full SHA for 4cac3c3
pkg/cmd/util/flag/duration_test.go
@@ -25,24 +25,12 @@ func TestParseDuration(t *testing.T) {
25
expected: 0,
26
wantErr: false,
27
},
28
- {
29
- name: "nanoseconds only",
30
- input: "30ns",
31
- expected: 30 * time.Nanosecond,
32
- wantErr: false,
33
- },
34
{
35
name: "seconds only",
36
input: "30s",
37
expected: 30 * time.Second,
38
39
40
41
- name: "minutes only",
42
- input: "5m",
43
- expected: 5 * time.Minute,
44
45
46
47
name: "hours only",
48
input: "2h",
0 commit comments