Skip to content

Commit 4cac3c3

Browse files
committed
do not test all units
Signed-off-by: iTrooz <[email protected]>
1 parent f5a4cce commit 4cac3c3

File tree

1 file changed

+0
-12
lines changed

1 file changed

+0
-12
lines changed

pkg/cmd/util/flag/duration_test.go

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -25,24 +25,12 @@ func TestParseDuration(t *testing.T) {
2525
expected: 0,
2626
wantErr: false,
2727
},
28-
{
29-
name: "nanoseconds only",
30-
input: "30ns",
31-
expected: 30 * time.Nanosecond,
32-
wantErr: false,
33-
},
3428
{
3529
name: "seconds only",
3630
input: "30s",
3731
expected: 30 * time.Second,
3832
wantErr: false,
3933
},
40-
{
41-
name: "minutes only",
42-
input: "5m",
43-
expected: 5 * time.Minute,
44-
wantErr: false,
45-
},
4634
{
4735
name: "hours only",
4836
input: "2h",

0 commit comments

Comments
 (0)