Skip to content

Commit 1b9e6b9

Browse files
committed
f
1 parent 8853864 commit 1b9e6b9

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

cmd/installer/cli/api_test.go

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -71,9 +71,7 @@ func Test_serveAPI(t *testing.T) {
7171
passwordHash, err := bcrypt.GenerateFromPassword([]byte(password), 10)
7272
require.NoError(t, err)
7373

74-
// Create a runtime config with temp directory
75-
rc := runtimeconfig.New(nil)
76-
rc.SetDataDir(t.TempDir())
74+
rc := setupMockRuntimeConfig(t)
7775

7876
config := apiOptions{
7977
APIConfig: apitypes.APIConfig{
@@ -92,6 +90,9 @@ func Test_serveAPI(t *testing.T) {
9290
},
9391
ClusterID: "123",
9492
Mode: apitypes.ModeInstall,
93+
LinuxConfig: apitypes.LinuxConfig{
94+
RuntimeConfig: rc,
95+
},
9596
},
9697
ManagerPort: portInt,
9798
WebMode: web.ModeInstall,

0 commit comments

Comments
 (0)