Skip to content

Commit

Permalink
Remove duplicate kubectl in a log message
Browse files Browse the repository at this point in the history
Signed-off-by: mprahl <mprahl@users.noreply.github.com>
  • Loading branch information
mprahl committed May 17, 2024
1 parent 0f2cacc commit 376c11c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion test/e2e/case39_diff_generation_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,8 @@ var _ = Describe("Generate the diff", Ordered, func() {
Expect(diff).Should(ContainSubstring(`Logging the diff:
--- default/case39-map : existing
+++ default/case39-map : updated
@@ -2,3 +2,3 @@
@@ -1,8 +1,8 @@
apiVersion: v1
data:
- fieldToUpdate: "1"
+ fieldToUpdate: "2"
Expand Down
2 changes: 1 addition & 1 deletion test/utils/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ func Kubectl(args ...string) {
output, err := cmd.CombinedOutput()
if err != nil {
// in case of failure, print command output (including error)
Fail(fmt.Sprintf("Error running 'kubectl %s'\n: %s: %v", strings.Join(cmd.Args, " "), output, err), 1)
Fail(fmt.Sprintf("Error running '%s'\n: %s: %v", strings.Join(cmd.Args, " "), output, err), 1)
}
}

Expand Down

0 comments on commit 376c11c

Please sign in to comment.