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

@@ -8,7 +8,6 @@ import (
)
var (
devMode config.BoolOption
defaultDevMode bool
)
@@ -27,8 +26,9 @@ func registerConfig() error {
Name: "Development Mode",
Key: "core/devMode",
Description: "In Development Mode security restrictions are lifted/softened to enable easier access to Portmaster for debugging and testing purposes.",
ExpertiseLevel: config.ExpertiseLevelDeveloper,
OptType: config.OptTypeBool,
ExpertiseLevel: config.ExpertiseLevelDeveloper,
ReleaseLevel: config.ReleaseLevelStable,
DefaultValue: defaultDevMode,
})
if err != nil {