Skip to content

Commit

Permalink
fix function call on test
Browse files Browse the repository at this point in the history
  • Loading branch information
tashima42 committed Sep 26, 2023
1 parent 9e79099 commit a5cc1fd
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions release/rancher/rancher_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,7 @@ func TestFindRCNonMirroredImages(t *testing.T) {
images := "rancher/pushprox-proxy:v0.1.0-rancher2-proxy\nrancher/rancher-agent:v2.7.6-rc5\nrancher/rancher-csp-adapter:v2.0.2\nrancher/rancher-webhook:v0.3.5\nrancher/rancher:v2.7.6-rc5\nrancher/mirrored-rke-tools:v0.1.88-rc3"
exptectedRCImages := []string{"rancher/rancher-agent:v2.7.6-rc5", "rancher/rancher:v2.7.6-rc5"}

result, err := findRCNonMirroredImages(images)
if err != nil {
t.Error(err)
}
result := nonMirroredRCImages(images)
if reflect.DeepEqual(exptectedRCImages, result) != true {
t.Errorf("failed: result images does not equal expected images, expected %+v, got %+v", exptectedRCImages, result)
}
Expand Down

0 comments on commit a5cc1fd

Please sign in to comment.