The floating address is read each time the summary is asked
server add records it after restarting the new control plane, which then never named it. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
1 parent
1d1409faad
commit
c2b4985abe
2 files changed
+13
-6
No files matched your search
@@ -76,7 +76,11 @@ func TestTheProbeAsksEachControlPlaneWhetherItLeads(t *testing.T) {
|
||||
}
|
||||
at := map[string]string{"10.0.0.1": leading.URL, "10.0.0.2": standby.URL, "10.0.0.3": gone.URL, "10.0.0.161": leading.URL}
|
||||
p := newControlPlaneProbe(st, ":8080")
|
||||
p.self, p.floating = "two", "10.0.0.161"
|
||||
floating := filepath.Join(t.TempDir(), "floating")
|
||||
if err := os.WriteFile(floating, []byte("10.0.0.161/24\n"), 0o644); err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
p.self, p.floating = "two", floating
|
||||
p.leaderURL = func(host string) string { return at[host] + "/leader" }
|
||||
|
||||
s := p.Status()
|
||||
|
||||
Reference in new issue
Block a user