Skip to content

Commit

Permalink
fix(e2e): Assert OLM Subscription update
Browse files Browse the repository at this point in the history
  • Loading branch information
astefanutti committed Jan 24, 2022
1 parent d2caa0c commit 365df26
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion e2e/upgrade/olm_upgrade_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 365df26

Please sign in to comment.