Skip to content
/ etcd Public
forked from etcd-io/etcd

Commit

Permalink
integration: increase BootstrapTimeout for duplicate member
Browse files Browse the repository at this point in the history
Fix etcd-io#7267.

In slow CPU machine, it often takes more than 10ms, so times out.

Signed-off-by: Gyu-Ho Lee <[email protected]>
  • Loading branch information
gyuho committed May 4, 2017
1 parent 3b251b0 commit c73abaa
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions integration/member_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ import (
"reflect"
"testing"

"time"

"github.com/coreos/etcd/client"
"github.com/coreos/etcd/pkg/testutil"
"golang.org/x/net/context"
Expand Down Expand Up @@ -69,6 +71,7 @@ func TestLaunchDuplicateMemberShouldFail(t *testing.T) {
size := 3
c := NewCluster(t, size)
m := c.Members[0].Clone(t)
m.BootstrapTimeout = time.Second
var err error
m.DataDir, err = ioutil.TempDir(os.TempDir(), "etcd")
if err != nil {
Expand Down

0 comments on commit c73abaa

Please sign in to comment.