Skip to content

Commit e1fcb99

Browse files
committed
fix: TestCreateNewSubscriptionWithPodConfig bug
1 parent 64ac634 commit e1fcb99

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

test/e2e/subscription_e2e_test.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1353,6 +1353,10 @@ func TestCreateNewSubscriptionWithPodConfig(t *testing.T) {
13531353
require.NotNil(t, subscription)
13541354

13551355
csv, err := fetchCSV(t, crClient, subscription.Status.CurrentCSV, testNamespace, buildCSVConditionChecker(v1alpha1.CSVPhaseSucceeded))
1356+
if err != nil {
1357+
// TODO: If OLM doesn't have the subscription in its cache when it initially creates the deployment, the CSV will hang on "Installing" until it reaches the five-minute timeout, then succeed on a retry. It should be possible to skip the wait and retry immediately, but in the meantime, giving this test a little extra patience should mitigate flakes.
1358+
csv, err = fetchCSV(t, crClient, subscription.Status.CurrentCSV, testNamespace, buildCSVConditionChecker(v1alpha1.CSVPhaseSucceeded))
1359+
}
13561360
require.NoError(t, err)
13571361

13581362
proxyEnv := proxyEnvVarFunc(t, config)

0 commit comments

Comments
 (0)