From 539a686bbdead78d209c2481f1c0f7784a050de8 Mon Sep 17 00:00:00 2001 From: James de Souza Date: Wed, 8 Nov 2023 12:40:05 -0300 Subject: [PATCH] Fixing tests --- pkg/api/output_test.go | 6 +++--- pkg/api/versions_test.go | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) 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",