Skip to content

Commit

Permalink
Cast constant to int64 so it doesn't overflow. (hashicorp#11466)
Browse files Browse the repository at this point in the history
  • Loading branch information
ncabatoff authored Apr 26, 2021
1 parent 1fccd0d commit 39fd597
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vault/logical_system_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2066,7 +2066,7 @@ func TestSystemBackend_rotateConfig(t *testing.T) {
}

req2 := logical.TestRequest(t, logical.UpdateOperation, "rotate/config")
req2.Data["max_operations"] = 2345678910
req2.Data["max_operations"] = int64(2345678910)
req2.Data["interval"] = "5432h0m0s"
req2.Data["enabled"] = false

Expand Down

0 comments on commit 39fd597

Please sign in to comment.