add retry to TestResetSessionTimerLocked
This commit is contained in:
parent
47e1c37fe6
commit
2e961d6539
|
@ -162,10 +162,11 @@ func TestResetSessionTimerLocked(t *testing.T) {
|
||||||
t.Fatalf("missing timer")
|
t.Fatalf("missing timer")
|
||||||
}
|
}
|
||||||
|
|
||||||
time.Sleep(10 * time.Millisecond * structs.SessionTTLMultiplier)
|
retry.Run(t, func(r *retry.R) {
|
||||||
if s1.sessionTimers.Get("foo") != nil {
|
if s1.sessionTimers.Get("foo") != nil {
|
||||||
t.Fatalf("timer should be gone")
|
r.Fatal("timer should be gone")
|
||||||
}
|
}
|
||||||
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
func TestResetSessionTimerLocked_Renew(t *testing.T) {
|
func TestResetSessionTimerLocked_Renew(t *testing.T) {
|
||||||
|
|
Loading…
Reference in New Issue