mirror of https://github.com/status-im/consul.git
test: lower wait time for some tests
This commit is contained in:
parent
98f6e3b7c5
commit
3d54fe51ba
|
@ -35,7 +35,7 @@ func TestExecCommandRun(t *testing.T) {
|
||||||
waitForLeader(t, a1.httpAddr)
|
waitForLeader(t, a1.httpAddr)
|
||||||
|
|
||||||
ui, c := testExecCommand(t)
|
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)
|
code := c.Run(args)
|
||||||
if code != 0 {
|
if code != 0 {
|
||||||
|
@ -73,8 +73,7 @@ func TestExecCommandRun_CrossDC(t *testing.T) {
|
||||||
waitForLeader(t, a2.httpAddr)
|
waitForLeader(t, a2.httpAddr)
|
||||||
|
|
||||||
ui, c := testExecCommand(t)
|
ui, c := testExecCommand(t)
|
||||||
args := []string{"-http-addr=" + a1.httpAddr,
|
args := []string{"-http-addr=" + a1.httpAddr, "-wait=500ms", "-datacenter=dc2", "uptime"}
|
||||||
"-wait=400ms", "-datacenter=dc2", "uptime"}
|
|
||||||
|
|
||||||
code := c.Run(args)
|
code := c.Run(args)
|
||||||
if code != 0 {
|
if code != 0 {
|
||||||
|
|
Loading…
Reference in New Issue