Skip to content
This repository has been archived by the owner on Oct 10, 2023. It is now read-only.

Commit

Permalink
Fix flaky package plugin tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Haoran Li committed Sep 13, 2022
1 parent f284c93 commit a67a8ad
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions cmd/cli/plugin/package/test/lib/package_plugin.go
Original file line number Diff line number Diff line change
Expand Up @@ -400,10 +400,7 @@ func (p *packagePlugin) CheckRepositoryAvailable(o *packagedatamodel.RepositoryO
RepositoryName: o.RepositoryName,
Namespace: o.Namespace,
})
if result.Error != nil {
return false, result.Error
}
if result.Stdout != nil && strings.Contains(result.Stdout.String(), "Reconcile succeeded") {
if result.Error == nil && result.Stdout != nil && strings.Contains(result.Stdout.String(), "Reconcile succeeded") {
return true, nil
}
return false, nil
Expand Down

0 comments on commit a67a8ad

Please # to comment.