Skip to content

Commit

Permalink
updated ui/client tests
Browse files Browse the repository at this point in the history
  • Loading branch information
gustavo-iniguez-goya committed Dec 16, 2023
1 parent 211c864 commit 6873fd3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions daemon/ui/client_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand All @@ -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)
Expand Down

0 comments on commit 6873fd3

Please sign in to comment.