Skip to content

Commit

Permalink
backport of commit 52957fc (#15031)
Browse files Browse the repository at this point in the history
This pull request was automerged via backport-assistant
  • Loading branch information
hc-github-team-consul-core authored Oct 18, 2022
1 parent b2f8c89 commit 10f9d8e
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions agent/intentions_endpoint_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -407,22 +407,22 @@ func TestIntentionGetExact(t *testing.T) {

t.Parallel()

hcl := `
bootstrap = false
bootstrap_expect = 2
server = true
`

a1 := NewTestAgent(t, hcl)
a2 := NewTestAgent(t, hcl)

_, err := a1.JoinLAN([]string{
fmt.Sprintf("127.0.0.1:%d", a2.Config.SerfPortLAN),
}, nil)
a1 := NewTestAgent(t, `
bootstrap = true
server = true
`)
testrpc.WaitForTestAgent(t, a1.RPC, "dc1")

a2 := NewTestAgent(t, `
bootstrap = false
server = true
`)

_, err := a2.JoinLAN([]string{fmt.Sprintf("127.0.0.1:%d", a1.Config.SerfPortLAN)}, nil)
require.NoError(t, err)

testrpc.WaitForTestAgent(t, a1.RPC, "dc1")
testrpc.WaitForTestAgent(t, a2.RPC, "dc1")

testrpc.WaitForLeader(t, a1.RPC, "dc1")
testrpc.WaitForLeader(t, a2.RPC, "dc1")

Expand Down

0 comments on commit 10f9d8e

Please sign in to comment.