Skip to content

Commit 76113cd

Browse files
committed
Fix: CI pipeline - Export test
1 parent 1310042 commit 76113cd

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

internal/pkg/config/profiles_test.go

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -202,11 +202,15 @@ func TestExportProfile(t *testing.T) {
202202
// Create prerequisite profile
203203
p := print.NewPrinter()
204204
profileName := "export-profile-test"
205-
InitConfig()
206-
err = CreateProfile(p, profileName, false, false)
205+
err = CreateProfile(p, profileName, true, true)
207206
if err != nil {
208207
t.Fatalf("could not create prerequisite profile, %v", err)
209208
}
209+
InitConfig()
210+
err = Write()
211+
if err != nil {
212+
t.Fatalf("could not write profile, %v", err)
213+
}
210214
t.Cleanup(func() {
211215
func(p *print.Printer, profile string) {
212216
err := DeleteProfile(p, profile)

0 commit comments

Comments
 (0)