Skip to content

Commit

Permalink
Fix getAllExample (flyteorg#320)
Browse files Browse the repository at this point in the history
Signed-off-by: Eduardo Apolinario <[email protected]>

Co-authored-by: Eduardo Apolinario <[email protected]>
  • Loading branch information
eapolinario and eapolinario authored May 5, 2022
1 parent 779ced9 commit 848239e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cmd/register/register_util.go
Original file line number Diff line number Diff line change
Expand Up @@ -656,7 +656,7 @@ func filterExampleFromRelease(releases *github.RepositoryRelease) []*github.Rele

func getAllExample(repository, version string, repoService g.GHRepoService) ([]*github.ReleaseAsset, *github.RepositoryRelease, error) {
if len(version) > 0 {
release, err := g.GetReleaseByTag(version, repository, repoService)
release, err := g.GetReleaseByTag(repository, version, repoService)
if err != nil {
return nil, nil, err
}
Expand Down
2 changes: 1 addition & 1 deletion cmd/register/register_util_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -458,7 +458,7 @@ func TestGetAllFlytesnacksExample(t *testing.T) {
mockGh := &ghMocks.GHRepoService{}
tag := "v0.15.0"
sandboxManifest := "flyte_sandbox_manifest.tgz"
mockGh.OnGetReleaseByTagMatch(mock.Anything, mock.Anything, mock.Anything, mock.Anything).Return(&github.RepositoryRelease{
mockGh.OnGetReleaseByTagMatch(mock.Anything, mock.Anything, mock.Anything, tag).Return(&github.RepositoryRelease{
TagName: &tag,
Assets: []*github.ReleaseAsset{{
Name: &sandboxManifest,
Expand Down

0 comments on commit 848239e

Please sign in to comment.