Skip to content

Commit

Permalink
Nit: simplify config package import
Browse files Browse the repository at this point in the history
  • Loading branch information
cardil committed Sep 3, 2024
1 parent 80ec421 commit 8ddab3c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions pkg/commands/plugin/list_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ import (
"testing"

"knative.dev/client/pkg/commands"
config2 "knative.dev/client/pkg/config"
"knative.dev/client/pkg/config"
"knative.dev/client/pkg/util"

"github.com/spf13/cobra"
Expand Down Expand Up @@ -135,8 +135,8 @@ func prepareTestSetup(t *testing.T, args ...interface{}) (string, func()) {
tmpPathDir := t.TempDir()

// Prepare configuration to for our test
oldConfig := config2.GlobalConfig
config2.GlobalConfig = &config2.TestConfig{
oldConfig := config.GlobalConfig
config.GlobalConfig = &config.TestConfig{
TestPluginsDir: tmpPathDir,
TestLookupPluginsInPath: false,
}
Expand All @@ -148,7 +148,7 @@ func prepareTestSetup(t *testing.T, args ...interface{}) (string, func()) {
}

return tmpPathDir, func() {
config2.GlobalConfig = oldConfig
config.GlobalConfig = oldConfig
}
}

Expand Down

0 comments on commit 8ddab3c

Please sign in to comment.