Changed warning message

Signed-off-by: Ivan Kozlovic <ivan@synadia.com>
This commit is contained in:
Ivan Kozlovic
2020-10-09 09:36:30 -06:00
parent df9d5f5fd9
commit 13df1a55fd
2 changed files with 2 additions and 2 deletions

View File

@@ -582,7 +582,7 @@ func (c *client) processRouteInfo(info *Info) {
// Check if remote has same server name than this server.
if !c.route.didSolicit && info.Name == srvName {
// For now simply report as a warning.
c.Warnf("Remote server has the same name: %q", info.Name)
c.Warnf("Remote server has a duplicate name: %q", info.Name)
}
// Mark that the INFO protocol has been received, so we can detect updates.

View File

@@ -1361,7 +1361,7 @@ func TestRouteDuplicateServerName(t *testing.T) {
select {
case w := <-l.warn:
if !strings.Contains(w, "Remote server has the same name") {
if !strings.Contains(w, "Remote server has a duplicate name") {
t.Fatalf("Expected warning about same name, got %q", w)
}
case <-time.After(time.Second):