A possible fix for #179

This commit is contained in:
Neale Pickett 2022-05-10 17:59:08 -06:00
parent 6d7fb9ebf5
commit d014384b05
1 changed files with 2 additions and 0 deletions

View File

@ -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()