Skip to content

Commit

Permalink
Update helper_test.go
Browse files Browse the repository at this point in the history
  • Loading branch information
MingZhang-YBPS authored Sep 6, 2023
1 parent 17b3db9 commit f3f052f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmd/provisioner-localpv/app/helper_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,15 +55,15 @@ func TestConvertToK(t *testing.T) {
limit: "200%",
pvcStorage: 5000000,
},
want: "10000k",
want: "9766k",
wantErr: false,
},
"Present limit grace with decimal%": {
args: args{
limit: ".5%",
pvcStorage: 1000,
},
want: "2k",
want: "1k",
wantErr: false,
},
"Present limit grace with invalid pattern": {
Expand Down

0 comments on commit f3f052f

Please sign in to comment.