mirror of
https://github.com/evilsocket/opensnitch.git
synced 2025-03-04 00:24:40 +01:00
updated ui/client tests
This commit is contained in:
parent
211c864d76
commit
6873fd3a2d
1 changed files with 2 additions and 2 deletions
|
@ -55,7 +55,7 @@ func validateConfig(t *testing.T, uiClient *Client, cfg *config.Config) {
|
|||
|
||||
func TestClientConfig(t *testing.T) {
|
||||
restoreConfigFile(t)
|
||||
configFile = "./testdata/default-config.json"
|
||||
cfgFile := "./testdata/default-config.json"
|
||||
|
||||
rules, err := rule.NewLoader(false)
|
||||
if err != nil {
|
||||
|
@ -64,7 +64,7 @@ func TestClientConfig(t *testing.T) {
|
|||
|
||||
stats := statistics.New(rules)
|
||||
loggerMgr := loggers.NewLoggerManager()
|
||||
uiClient := NewClient("unix:///tmp/osui.sock", stats, rules, loggerMgr)
|
||||
uiClient := NewClient("unix:///tmp/osui.sock", cfgFile, stats, rules, loggerMgr)
|
||||
|
||||
t.Run("validate-load-config", func(t *testing.T) {
|
||||
validateConfig(t, uiClient, defaultConfig)
|
||||
|
|
Loading…
Add table
Reference in a new issue