mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2026-03-16 17:54:07 +01:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user