From ed5a4c90050c2c39cb90717da07f46cebf712abd Mon Sep 17 00:00:00 2001 From: Neale Pickett Date: Wed, 14 Oct 2020 10:05:53 -0600 Subject: [PATCH] all tests passing again + editor fail --- cmd/mothd/httpd_test.go | 2 +- cmd/mothd/server.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/cmd/mothd/httpd_test.go b/cmd/mothd/httpd_test.go index 2ec8e25..f8bbb5b 100644 --- a/cmd/mothd/httpd_test.go +++ b/cmd/mothd/httpd_test.go @@ -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()) } diff --git a/cmd/mothd/server.go b/cmd/mothd/server.go index f801857..0b35618 100644 --- a/cmd/mothd/server.go +++ b/cmd/mothd/server.go @@ -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()