From a855d31f84cf0ff9eff4d449a51ec9b0a4a9bfde Mon Sep 17 00:00:00 2001 From: James Phillips Date: Tue, 4 Jul 2017 21:38:42 -0700 Subject: [PATCH] Adds a comment about flood joining. --- agent/consul/server_test.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/agent/consul/server_test.go b/agent/consul/server_test.go index c8633f80fc..a142dbb6c8 100644 --- a/agent/consul/server_test.go +++ b/agent/consul/server_test.go @@ -315,6 +315,9 @@ func TestServer_JoinSeparateLanAndWanAddresses(t *testing.T) { // Join s3 to s2 on lan joinLAN(t, s3, s2) + + // We rely on flood joining to fill across the LAN, so we expect s3 to + // show up on the WAN as well, even though it's not explicitly joined. retry.Run(t, func(r *retry.R) { if got, want := len(s1.WANMembers()), 3; got != want { r.Fatalf("got %d s1 WAN members want %d", got, want)