test(vault): Increase threshold for period assertion (#3216)

This allows for a greater delta between the period returned by vault and
they expected value to account for some delay due to load on the test
runners.
pull/3220/head
Timothy Messier 3 years ago committed by GitHub
parent 5ac29eb2e5
commit d792cf4487
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -134,7 +134,7 @@ func TestTestVaultServer_CreateToken(t *testing.T) {
gotPeriod, err := parseutil.ParseDurationSecond(period)
require.NoError(t, err)
if assert.True(t, ok, op) {
delta := 1 * time.Minute
delta := 5 * time.Minute
assert.InDelta(t, want.Seconds(), gotPeriod.Seconds(), delta.Seconds())
}
}

Loading…
Cancel
Save