Skip to content

Commit

Permalink
functional: fix MemberAdd call in tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
jingyih committed May 10, 2019
1 parent 2c19071 commit c8fbc4d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion functional/tester/case_sigquit_remove.go
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ func recover_SIGQUIT_ETCD_AND_REMOVE_DATA(clus *Cluster, idx1 int) error {
}
defer cli2.Close()

_, err = cli2.MemberAdd(context.Background(), clus.Members[idx1].Etcd.AdvertisePeerURLs)
_, err = cli2.MemberAdd(context.Background(), clus.Members[idx1].Etcd.AdvertisePeerURLs, false)
clus.lg.Info(
"member add before fresh restart",
zap.String("target-endpoint", clus.Members[idx1].EtcdClientEndpoint),
Expand Down
2 changes: 1 addition & 1 deletion functional/tester/case_sigquit_remove_quorum.go
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ func (c *fetchSnapshotCaseQuorum) Recover(clus *Cluster) error {
zap.Strings("peer-urls", clus.Members[idx].Etcd.AdvertisePeerURLs),
)
ctx, cancel := context.WithTimeout(context.Background(), time.Minute)
_, err := leaderc.MemberAdd(ctx, clus.Members[idx].Etcd.AdvertisePeerURLs)
_, err := leaderc.MemberAdd(ctx, clus.Members[idx].Etcd.AdvertisePeerURLs, false)
cancel()
clus.lg.Info(
"member add request DONE",
Expand Down

0 comments on commit c8fbc4d

Please sign in to comment.