Skip to content

Commit

Permalink
Fix for breaking change
Browse files Browse the repository at this point in the history
Signed-off-by: Kim Christensen <[email protected]>
  • Loading branch information
kichristensen committed Jul 15, 2024
1 parent 29f06bc commit 5e7df3f
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions pkg/azure/helpers.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ package azure
import (
"testing"

"get.porter.sh/porter/pkg/config"
"get.porter.sh/porter/pkg/portercontext"
"get.porter.sh/porter/pkg/runtime"
)
Expand All @@ -14,12 +15,12 @@ type TestPlugin struct {

// NewTestPlugin initializes a plugin test client, with the output buffered, and an in-memory file system.
func NewTestPlugin(t *testing.T) *TestPlugin {
c := portercontext.NewTestContext(t)
testConfig := config.NewTestConfig(t)
m := &TestPlugin{
Plugin: &Plugin{
RuntimeConfig: runtime.NewConfigFor(c.Context),
RuntimeConfig: runtime.NewConfigFor(testConfig.Config),
},
TestContext: c,
TestContext: testConfig.TestContext,
}

return m
Expand Down

0 comments on commit 5e7df3f

Please sign in to comment.