From d014384b05ec181ecf9a9bbb75455e5326bb4cc0 Mon Sep 17 00:00:00 2001 From: Neale Pickett Date: Tue, 10 May 2022 17:59:08 -0600 Subject: [PATCH] A possible fix for #179 --- cmd/mothd/server_test.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cmd/mothd/server_test.go b/cmd/mothd/server_test.go index 6b6e621..ab4f986 100644 --- a/cmd/mothd/server_test.go +++ b/cmd/mothd/server_test.go @@ -13,11 +13,13 @@ const TestTeamID = "teamID" func NewTestServer() *MothServer { puzzles := NewTestMothballs() + puzzles.refresh() go puzzles.Maintain(TestMaintenanceInterval) state := NewTestState() afero.WriteFile(state, "teamids.txt", []byte("teamID\n"), 0644) afero.WriteFile(state, "messages.html", []byte("messages.html"), 0644) + state.refresh() go state.Maintain(TestMaintenanceInterval) theme := NewTestTheme()