Fix dependency graph and linter errors
This commit is contained in:
@@ -7,5 +7,5 @@ import (
|
||||
)
|
||||
|
||||
func TestMain(m *testing.M) {
|
||||
pmtesting.TestMain(m)
|
||||
pmtesting.TestMain(m, module)
|
||||
}
|
||||
|
||||
@@ -4,6 +4,11 @@ import (
|
||||
"github.com/safing/portbase/modules"
|
||||
)
|
||||
|
||||
var (
|
||||
// Module of this package. Export needed for testing of the endpoints package.
|
||||
Module *modules.Module
|
||||
)
|
||||
|
||||
func init() {
|
||||
modules.Register("intel", nil, nil, nil, "geoip")
|
||||
Module = modules.Register("intel", nil, nil, nil, "geoip")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user