Nicer format for devel server team names

This commit is contained in:
Neale Pickett 2020-12-02 19:49:06 -07:00
parent d4b37d1efa
commit 7b485ababf
2 changed files with 2 additions and 2 deletions

View File

@ -451,5 +451,5 @@ func (ds *DevelState) TeamName(teamID string) (string, error) {
if name, err := ds.StateProvider.TeamName(teamID); err == nil {
return name, nil
}
return fmt.Sprintf("Devel Server Team %s", teamID), nil
return fmt.Sprintf("«devel:%s»", teamID), nil
}

View File

@ -271,7 +271,7 @@ func TestDevelState(t *testing.T) {
ds := NewDevelState(s)
if n, err := ds.TeamName("boog"); err != nil {
t.Error("Devel State returned error on team name lookup")
} else if n != "Devel Server Team boog" {
} else if n != "«devel:boog»" {
t.Error("Wrong team name", n)
}