File tree Expand file tree Collapse file tree 1 file changed +5
-0
lines changed
Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -121,6 +121,10 @@ func TestOperator_RaftGetConfiguration_ACLDeny(t *testing.T) {
121121 if len (future .Configuration ().Servers ) != 1 {
122122 t .Fatalf ("bad: %v" , future .Configuration ().Servers )
123123 }
124+ serverIDLastIndexMap := make (map [raft.ServerID ]uint64 )
125+ for _ , serverState := range s1 .autopilot .GetState ().Servers {
126+ serverIDLastIndexMap [serverState .Server .ID ] = serverState .Stats .LastIndex
127+ }
124128 me := future .Configuration ().Servers [0 ]
125129 expected := structs.RaftConfigurationResponse {
126130 Servers : []* structs.RaftServer {
@@ -131,6 +135,7 @@ func TestOperator_RaftGetConfiguration_ACLDeny(t *testing.T) {
131135 Leader : true ,
132136 Voter : true ,
133137 ProtocolVersion : "3" ,
138+ LastIndex : serverIDLastIndexMap [me .ID ],
134139 },
135140 },
136141 Index : future .Index (),
You can’t perform that action at this time.
0 commit comments