Remove hardcoded wait time in session TTL tests

This commit is contained in:
Atin Malaviya 2014-12-10 21:04:09 -05:00
parent 2de09dc2e7
commit e84b26fcf5
1 changed files with 1 additions and 2 deletions

View File

@ -239,8 +239,7 @@ func TestSessionTTL(t *testing.T) {
t.Fatalf("Incorrect TTL: %s", respObj[0].TTL)
}
// now wait for timeout, it is really 2*TTL, so wait 3*TTL
time.Sleep(ttl * 3)
time.Sleep(ttl * structs.SessionTTLMultiplier + ttl)
req, err = http.NewRequest("GET",
"/v1/session/info/"+id, nil)