end-to-end testing setup

This commit is contained in:
Hayden 2022-09-03 18:42:03 -08:00
parent b4eb7d8ddc
commit ad4c8c9ab4
41 changed files with 544 additions and 313 deletions

View file

@ -36,7 +36,7 @@ func NewApp(conf *config.Config) *app {
return s
}
func (a *app) StartReoccurringTasks(t time.Duration, fn func()) {
func (a *app) StartBgTask(t time.Duration, fn func()) {
for {
a.server.Background(fn)
time.Sleep(t)