Browse Source

Remove hardcoded wait time in session TTL tests

pull/524/head
Atin Malaviya 10 years ago
parent
commit
0f9723e6f8
  1. 3
      command/agent/session_endpoint_test.go

3
command/agent/session_endpoint_test.go

@ -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)

Loading…
Cancel
Save