Skip to content

Commit 58ccf60

Browse files
committed
fix: unit test
1 parent 85ae17d commit 58ccf60

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

api/integration/install_test.go

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -794,11 +794,15 @@ func TestSetInstallStatus(t *testing.T) {
794794
func TestInstallWithAPIClient(t *testing.T) {
795795
password := "test-password"
796796

797+
// Create a runtimeconfig to be used in the install process
798+
rc := runtimeconfig.New(nil)
799+
797800
// Create a config manager
798-
installationManager := installation.NewInstallationManager()
801+
installationManager := installation.NewInstallationManager(installation.WithRuntimeConfig(rc))
799802

800803
// Create an install controller with the config manager
801804
installController, err := install.NewInstallController(
805+
install.WithRuntimeConfig(rc),
802806
install.WithInstallationManager(installationManager),
803807
)
804808
require.NoError(t, err)

0 commit comments

Comments
 (0)