diff --git a/pkg/api/output_test.go b/pkg/api/output_test.go index 9a46241e..c2293eea 100644 --- a/pkg/api/output_test.go +++ b/pkg/api/output_test.go @@ -411,7 +411,7 @@ func TestGetReturnCode(t *testing.T) { ignoreRemovals: false, ignoreReplacementUnavailable: false, }, - want: 2, + want: 4, }, { name: "version is deprecated ignore deprecations", @@ -429,7 +429,7 @@ func TestGetReturnCode(t *testing.T) { ignoreRemovals: false, ignoreReplacementUnavailable: false, }, - want: 0, + want: 4, }, { name: "version is removed", @@ -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", diff --git a/pkg/api/versions_test.go b/pkg/api/versions_test.go index f84a4d51..1c33a2f3 100644 --- a/pkg/api/versions_test.go +++ b/pkg/api/versions_test.go @@ -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",