Skip to content

Commit

Permalink
Change image for test
Browse files Browse the repository at this point in the history
  • Loading branch information
shishir-11 committed Jul 19, 2024
1 parent a1dfee6 commit b845b24
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions pkg/patch/cmd_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ func TestNewPatchCmd(t *testing.T) {
},
{
name: "Silent flag used",
args: []string{"-t", "3.7-alpine-patched", "-i", "alpine:latest", "--silent"},
args: []string{"-t", "3.7-alpine-patched", "-i", "alpine:3.14", "--silent"},
expected: false,
errString: "",
},
Expand All @@ -34,8 +34,7 @@ func TestNewPatchCmd(t *testing.T) {
err := cmd.Execute()
if err != nil && !tt.expected {
t.Errorf("Unexpected error: %v", err)
}
if err != nil && err.Error() != tt.errString {
} else if err != nil && err.Error() != tt.errString {
t.Errorf("Unexpected error: %v, expected: %v", err, tt.expected)
}
})
Expand Down

0 comments on commit b845b24

Please sign in to comment.