fix: allow updated domain names in federation (#11365)

additionally also disallow overlapping domain names
This commit is contained in:
Harshavardhana
2021-01-28 11:44:48 -08:00
committed by GitHub
parent e79829b5b3
commit 6cd255d516
7 changed files with 123 additions and 59 deletions
+1 -1
View File
@@ -460,7 +460,7 @@ func TestLCP(t *testing.T) {
}
for i, test := range testCases {
foundPrefix := lcp(test.prefixes)
foundPrefix := lcp(test.prefixes, true)
if foundPrefix != test.commonPrefix {
t.Fatalf("Test %d: Common prefix found: `%v`, expected: `%v`", i+1, foundPrefix, test.commonPrefix)
}