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.
This commit is contained in:
Timothy Messier authored and GitHub committed 2023-05-11 08:46:59 -04:00
1 parent 5ac29eb2e5
commit d792cf4487
1 file changed
+1 -1
+1 -1
View File
@@ -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())
}
}