mirror of https://github.com/dirtbags/moth.git
A possible fix for #179
This commit is contained in:
parent
6d7fb9ebf5
commit
d014384b05
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue