test: lower wait time for some tests

This commit is contained in:
Frank Schroeder 2017-05-12 13:52:54 +02:00 committed by Frank Schröder
parent 10622b6995
commit 29f9b9b22a
1 changed files with 2 additions and 3 deletions

View File

@ -35,7 +35,7 @@ func TestExecCommandRun(t *testing.T) {
waitForLeader(t, a1.httpAddr)
ui, c := testExecCommand(t)
args := []string{"-http-addr=" + a1.httpAddr, "-wait=10s", "uptime"}
args := []string{"-http-addr=" + a1.httpAddr, "-wait=500ms", "uptime"}
code := c.Run(args)
if code != 0 {
@ -73,8 +73,7 @@ func TestExecCommandRun_CrossDC(t *testing.T) {
waitForLeader(t, a2.httpAddr)
ui, c := testExecCommand(t)
args := []string{"-http-addr=" + a1.httpAddr,
"-wait=400ms", "-datacenter=dc2", "uptime"}
args := []string{"-http-addr=" + a1.httpAddr, "-wait=500ms", "-datacenter=dc2", "uptime"}
code := c.Run(args)
if code != 0 {