Skip to content

Commit

Permalink
Fixing tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jdesouza committed Nov 8, 2023
1 parent 9249702 commit 539a686
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions pkg/api/output_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -411,7 +411,7 @@ func TestGetReturnCode(t *testing.T) {
ignoreRemovals: false,
ignoreReplacementUnavailable: false,
},
want: 2,
want: 4,
},
{
name: "version is deprecated ignore deprecations",
Expand All @@ -429,7 +429,7 @@ func TestGetReturnCode(t *testing.T) {
ignoreRemovals: false,
ignoreReplacementUnavailable: false,
},
want: 0,
want: 4,
},
{
name: "version is removed",
Expand All @@ -447,7 +447,7 @@ func TestGetReturnCode(t *testing.T) {
ignoreRemovals: false,
ignoreReplacementUnavailable: false,
},
want: 3,
want: 4,
},
{
name: "version is removed and replacement is unavailable",
Expand Down
2 changes: 1 addition & 1 deletion pkg/api/versions_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -467,7 +467,7 @@ func TestVersion_isReplacementAvailableIn(t *testing.T) {
targetVersions: map[string]string{"foo": "v1.16.0"},
component: "foo",
replacementAvailableIn: "",
want: true,
want: false,
},
{
name: "targetVersions not included for component",
Expand Down

0 comments on commit 539a686

Please sign in to comment.