Adapt core package to portbase changes, add testing setup and teardown methods

This commit is contained in:
Daniel
2019-10-25 13:31:24 +02:00
parent 4d48b023ae
commit c72f956fe8
4 changed files with 79 additions and 8 deletions

View File

@@ -6,9 +6,9 @@ import (
"github.com/safing/portbase/modules"
)
var (
coreModule = modules.Register("core", nil, startCore, nil, "base", "database", "config", "api", "random")
)
func init() {
modules.Register("core", nil, startCore, nil, "base", "database", "config", "api", "random")
}
func startCore() error {
if err := startPlatformSpecific(); err != nil {