mirror of
https://github.com/optim-enterprises-bv/vault.git
synced 2025-11-01 19:17:58 +00:00
Remove Unix() invocations on 'time.Time' objects and removed conversion of time to UTC
This commit is contained in:
@@ -41,7 +41,7 @@ func TestLeaseOptionsExpirationTime(t *testing.T) {
|
||||
var l LeaseOptions
|
||||
l.TTL = 1 * time.Hour
|
||||
|
||||
limit := time.Now().UTC().Add(time.Hour)
|
||||
limit := time.Now().Add(time.Hour)
|
||||
exp := l.ExpirationTime()
|
||||
if exp.Before(limit) {
|
||||
t.Fatalf("bad: %s", exp)
|
||||
|
||||
Reference in New Issue
Block a user