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")
|
||||
}
|
||||
|
||||
time.Sleep(10 * time.Millisecond * structs.SessionTTLMultiplier)
|
||||
if s1.sessionTimers.Get("foo") != nil {
|
||||
t.Fatalf("timer should be gone")
|
||||
}
|
||||
retry.Run(t, func(r *retry.R) {
|
||||
if s1.sessionTimers.Get("foo") != nil {
|
||||
r.Fatal("timer should be gone")
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
func TestResetSessionTimerLocked_Renew(t *testing.T) {
|
||||
|
|
Loading…
Reference in New Issue