Skip to content

Commit

Permalink
unit tests fix
Browse files Browse the repository at this point in the history
Signed-off-by: Himanshu Roy <hroy@redhat.com>
  • Loading branch information
hroyrh committed Apr 15, 2024
1 parent f6afc45 commit c53f0c8
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions pkg/provisioner/ironic/clients/features_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
)

func TestAvailableFeatures_ChooseMicroversion(t *testing.T) {
microVersion := "1.86"
microVersion := "1.89"
type fields struct {
MaxVersion int
}
Expand All @@ -16,21 +16,21 @@ func TestAvailableFeatures_ChooseMicroversion(t *testing.T) {
want string
}{
{
name: fmt.Sprintf("MaxVersion < %d return microversion %s", 86, baseline),
name: fmt.Sprintf("MaxVersion < %d return microversion %s", 89, baseline),
feature: fields{
MaxVersion: 50,
},
want: baseline,
},
{
name: fmt.Sprintf("MaxVersion = %d return %s", 86, microVersion),
name: fmt.Sprintf("MaxVersion = %d return %s", 89, microVersion),
feature: fields{
MaxVersion: 86,
MaxVersion: 89,
},
want: microVersion,
},
{
name: fmt.Sprintf("MaxVersion > %d return %s", 86, microVersion),
name: fmt.Sprintf("MaxVersion > %d return %s", 89, microVersion),
feature: fields{
MaxVersion: 100,
},
Expand Down

0 comments on commit c53f0c8

Please sign in to comment.