This is an automated email from the ASF dual-hosted git repository.

astefanutti pushed a commit to branch release-1.8.x
in repository https://gitbox.apache.org/repos/asf/camel-k.git

commit c8849c8cf90d4fc46b60faf56990a61eefa7da35
Author: Antonin Stefanutti <[email protected]>
AuthorDate: Mon Jan 24 12:21:48 2022 +0100

    fix(e2e): Assert OLM Subscription update
---
 e2e/upgrade/olm_upgrade_test.go | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/e2e/upgrade/olm_upgrade_test.go b/e2e/upgrade/olm_upgrade_test.go
index 5431400..4404c38 100644
--- a/e2e/upgrade/olm_upgrade_test.go
+++ b/e2e/upgrade/olm_upgrade_test.go
@@ -121,10 +121,12 @@ func TestOLMAutomaticUpgrade(t *testing.T) {
                        if crossChannelUpgrade {
                                t.Log("Updating Camel-K subscription OLM update 
channel.")
                                s := ckSubscription(ns)()
-                               ctrlutil.CreateOrUpdate(TestContext, 
TestClient(), s, func() error {
+                               r, err := ctrlutil.CreateOrUpdate(TestContext, 
TestClient(), s, func() error {
                                        s.Spec.Channel = newUpdateChannel
                                        return nil
                                })
+                               Expect(err).To(BeNil())
+                               
Expect(r).To(Equal(ctrlutil.OperationResultUpdated))
                        }
                        // Check the previous CSV is being replaced
                        Eventually(clusterServiceVersionPhase(func(csv 
olm.ClusterServiceVersion) bool {

Reply via email to