vault: upper bound on test

This commit is contained in:
Mitchell Hashimoto 2015-04-10 21:22:17 -07:00
parent 992028e23e
commit 5eff7f1b57

View file

@ -669,7 +669,7 @@ func TestTokenStore_HandleRequest_Renew(t *testing.T) {
// Get the new expire time
newExpire := resp.Auth.ExpirationTime()
expireDiff := newExpire.Sub(originalExpire)
if expireDiff < 30*time.Minute {
if expireDiff < 30*time.Minute || expireDiff > 3*time.Hour {
t.Fatalf("bad: %#v", expireDiff)
}
}