Create mock for store and add unit tests for cron (#1146)

* pass remote on init as argument like store

* mock store

* TestCreateBuild
This commit is contained in:
6543
2022-09-01 01:19:49 +02:00
committed by GitHub
parent 383f273392
commit 18c1807f4f
5 changed files with 1606 additions and 18 deletions

View File

@@ -187,7 +187,7 @@ func run(c *cli.Context) error {
setupMetrics(&g, _store)
g.Go(func() error {
return cron.Start(c.Context, _store)
return cron.Start(c.Context, _store, _remote)
})
// start the server with tls enabled