Skip to content

Commit

Permalink
test: fix server join order
Browse files Browse the repository at this point in the history
  • Loading branch information
lgfa29 committed Aug 30, 2022
1 parent 96707c5 commit d605f72
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions nomad/serf_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -326,10 +326,10 @@ func TestNomad_BootstrapExpect_NonVoter(t *testing.T) {
})
defer cleanupS4()

servers := []*Server{s1, s2, s3, s4}
// Start with 4th server for higher chance of success when joining servers.
servers := []*Server{s4, s3, s2, s1}

// Join with fourth server (now have quorum)
// Start with 4th server for higher chance of success
TestJoin(t, servers...)

// Assert leadership with 4 peers
Expand Down

0 comments on commit d605f72

Please sign in to comment.