File tree 2 files changed +5
-1
lines changed
2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change 1
1
[submodule "raft-compat/raft-latest "]
2
2
path = raft-compat/raft-previous-version
3
- url = git@ github.com: hashicorp/raft
3
+ url = https:// github.com/ hashicorp/raft.git
Original file line number Diff line number Diff line change @@ -20,6 +20,8 @@ func TestRaft_PreVote_BootStrap_PreVote(t *testing.T) {
20
20
utils .WaitFuture (t , f )
21
21
}
22
22
leaveNoTransfer := func (t * testing.T , cluster testcluster.RaftCluster , id string ) {
23
+ fr := cluster .GetLeader ().GetRaft ().(* raftprevious.Raft ).RemoveServer (raftprevious .ServerID (id ), 0 , 0 )
24
+ utils .WaitFuture (t , fr )
23
25
f := cluster .Raft (id ).(* raftprevious.Raft ).Shutdown ()
24
26
utils .WaitFuture (t , f )
25
27
}
@@ -160,6 +162,8 @@ func TestRaft_PreVote_Rollback(t *testing.T) {
160
162
utils .WaitFuture (t , f )
161
163
}
162
164
leaveNoTransfer := func (t * testing.T , cluster testcluster.RaftCluster , id string ) {
165
+ fr := cluster .GetLeader ().GetRaft ().(* raft.Raft ).RemoveServer (raft .ServerID (id ), 0 , 0 )
166
+ utils .WaitFuture (t , fr )
163
167
f := cluster .Raft (id ).(* raft.Raft ).Shutdown ()
164
168
utils .WaitFuture (t , f )
165
169
}
You can’t perform that action at this time.
0 commit comments