mirror of https://github.com/dirtbags/moth.git
Nicer format for devel server team names
This commit is contained in:
parent
d4b37d1efa
commit
7b485ababf
|
@ -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
|
||||
}
|
||||
|
|
|
@ -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)
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue