pull/6700/head
Medya Gh 2020-02-19 22:41:23 -08:00
parent 97627cd131
commit 7ada4f5c7f
1 changed files with 3 additions and 3 deletions

View File

@ -522,7 +522,7 @@ func validateProfileCmd(ctx context.Context, t *testing.T, profile string) {
t.Run("profile_list", func(t *testing.T) {
// List profiles
rr, err = Run(t, exec.CommandContext(ctx, Target(), "profile", "list"))
rr, err := Run(t, exec.CommandContext(ctx, Target(), "profile", "list"))
if err != nil {
t.Errorf("%s failed: %v", rr.Args, err)
}
@ -545,7 +545,7 @@ func validateProfileCmd(ctx context.Context, t *testing.T, profile string) {
t.Run("profile_json_output", func(t *testing.T) {
// Json output
rr, err = Run(t, exec.CommandContext(ctx, Target(), "profile", "list", "--output", "json"))
rr, err := Run(t, exec.CommandContext(ctx, Target(), "profile", "list", "--output", "json"))
if err != nil {
t.Errorf("%s failed: %v", rr.Args, err)
}
@ -555,7 +555,7 @@ func validateProfileCmd(ctx context.Context, t *testing.T, profile string) {
t.Errorf("%s failed: %v", rr.Args, err)
}
validProfiles := jsonObject["valid"]
profileExists = false
profileExists := false
for _, profileObject := range validProfiles {
if profileObject["Name"] == profile {
profileExists = true