all tests passing again + editor fail

This commit is contained in:
Neale Pickett 2020-10-14 10:05:53 -06:00
parent 5fe464acbc
commit ed5a4c9005
2 changed files with 2 additions and 2 deletions

View File

@ -50,7 +50,7 @@ func TestHttpd(t *testing.T) {
if r := hs.TestRequest("/state", nil); r.Result().StatusCode != 200 {
t.Error(r.Result())
} else if r.Body.String() != `{"Config":{"Devel":false},"Messages":"messages.html","TeamNames":{"self":""},"PointsLog":[],"Puzzles":{}}` {
} else if r.Body.String() != `{"Config":{"Devel":false},"Messages":"messages.html","TeamNames":{},"PointsLog":[],"Puzzles":{}}` {
t.Error("Unexpected state", r.Body.String())
}

View File

@ -183,7 +183,7 @@ func (mh *MothRequestHandler) exportStateIfRegistered(override bool) *StateExpor
registered := override || (err == nil)
export.Messages = mh.State.Messages()
inin export.TeamNames = make(map[string]string)
export.TeamNames = make(map[string]string)
// Anonymize team IDs in points log, and write out team names
pointsLog := mh.State.PointsLog()