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:
1 parent
5ac29eb2e5
commit
d792cf4487
1 file changed
+1
-1
@@ -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())
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user