mirror of https://github.com/status-im/consul.git
add retry to TestResetSessionTimerLocked
This commit is contained in:
parent
a7180f715a
commit
136df63e2c
|
@ -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